Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200687
b: refs/heads/master
c: c0f1f8e
h: refs/heads/master
i:
  200685: 055c1ad
  200683: a070bd2
  200679: 6179ca0
  200671: 8833c4a
v: v3
  • Loading branch information
Hema HK authored and Greg Kroah-Hartman committed Jun 30, 2010
1 parent af53d05 commit 1940b19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 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: f2263db74a66f1e341efb115e9f2420678c927b9
refs/heads/master: c0f1f8e38fda8e345cad9269c559b4f036378120
13 changes: 2 additions & 11 deletions trunk/drivers/usb/musb/musbhsdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,9 @@ static void configure_channel(struct dma_channel *channel,
if (mode) {
csr |= 1 << MUSB_HSDMA_MODE1_SHIFT;
BUG_ON(len < packet_sz);

if (packet_sz >= 64) {
csr |= MUSB_HSDMA_BURSTMODE_INCR16
<< MUSB_HSDMA_BURSTMODE_SHIFT;
} else if (packet_sz >= 32) {
csr |= MUSB_HSDMA_BURSTMODE_INCR8
<< MUSB_HSDMA_BURSTMODE_SHIFT;
} else if (packet_sz >= 16) {
csr |= MUSB_HSDMA_BURSTMODE_INCR4
<< MUSB_HSDMA_BURSTMODE_SHIFT;
}
}
csr |= MUSB_HSDMA_BURSTMODE_INCR16
<< MUSB_HSDMA_BURSTMODE_SHIFT;

csr |= (musb_channel->epnum << MUSB_HSDMA_ENDPOINT_SHIFT)
| (1 << MUSB_HSDMA_ENABLE_SHIFT)
Expand Down

0 comments on commit 1940b19

Please sign in to comment.