Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93303
b: refs/heads/master
c: dfa5ec7
h: refs/heads/master
i:
  93301: 08cc6ed
  93299: 5e4378c
  93295: baf607d
v: v3
  • Loading branch information
Julia Lawall authored and Greg Kroah-Hartman committed Apr 25, 2008
1 parent edd8b2f commit e617cf3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3d71fe0bb29a3fbffdbe69dd0696927b6a23dd4e
refs/heads/master: dfa5ec79d28300b0d1fdeafbeebf0a6b721edc38
6 changes: 3 additions & 3 deletions trunk/drivers/usb/host/r8a66597-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -960,9 +960,9 @@ static void prepare_packet_read(struct r8a66597 *r8a66597,
r8a66597_write(r8a66597, TRCLR,
td->pipe->pipetre);
r8a66597_write(r8a66597,
(urb->transfer_buffer_length
+ td->maxpacket - 1)
/ td->maxpacket,
DIV_ROUND_UP
(urb->transfer_buffer_length,
td->maxpacket),
td->pipe->pipetrn);
r8a66597_bset(r8a66597, TRENB,
td->pipe->pipetre);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/misc/usbtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ static struct urb *iso_alloc_urb (
return NULL;
maxp = 0x7ff & le16_to_cpu(desc->wMaxPacketSize);
maxp *= 1 + (0x3 & (le16_to_cpu(desc->wMaxPacketSize) >> 11));
packets = (bytes + maxp - 1) / maxp;
packets = DIV_ROUND_UP(bytes, maxp);

urb = usb_alloc_urb (packets, GFP_KERNEL);
if (!urb)
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/usb/serial/ftdi_sio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,7 @@ static void ftdi_write_bulk_callback (struct urb *urb)
data_offset = priv->write_offset;
if (data_offset > 0) {
/* Subtract the control bytes */
countback -= (data_offset * ((countback + (PKTSZ - 1)) / PKTSZ));
countback -= (data_offset * DIV_ROUND_UP(countback, PKTSZ));
}
spin_lock_irqsave(&priv->tx_lock, flags);
--priv->tx_outstanding_urbs;
Expand Down Expand Up @@ -1506,7 +1506,7 @@ static void ftdi_read_bulk_callback (struct urb *urb)

/* count data bytes, but not status bytes */
countread = urb->actual_length;
countread -= 2 * ((countread + (PKTSZ - 1)) / PKTSZ);
countread -= 2 * DIV_ROUND_UP(countread, PKTSZ);
spin_lock_irqsave(&priv->rx_lock, flags);
priv->rx_bytes += countread;
spin_unlock_irqrestore(&priv->rx_lock, flags);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/serial/io_ti.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ static void TIChasePort(struct edgeport_port *port, unsigned long timeout, int f
/* (TIIsTxActive doesn't seem to wait for the last byte) */
if ((baud_rate=port->baud_rate) == 0)
baud_rate = 50;
msleep(max(1,(10000+baud_rate-1)/baud_rate));
msleep(max(1, DIV_ROUND_UP(10000, baud_rate)));
}

static int TIChooseConfiguration (struct usb_device *dev)
Expand Down

0 comments on commit e617cf3

Please sign in to comment.