Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195330
b: refs/heads/master
c: ddb495d
h: refs/heads/master
v: v3
  • Loading branch information
Felipe Balbi authored and Greg Kroah-Hartman committed May 20, 2010
1 parent 139c79e commit e0e473c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 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: ca4b2532fb0e2d62370d9825147ffa9b9d9e3880
refs/heads/master: ddb495d4d81dee4fdd96ae397d60ddefd65204c6
16 changes: 3 additions & 13 deletions trunk/drivers/usb/musb/musbhsdma.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,26 +102,16 @@ static inline void musb_write_hsdma_addr(void __iomem *mbase,

static inline u32 musb_read_hsdma_count(void __iomem *mbase, u8 bchannel)
{
u32 count = musb_readw(mbase,
return musb_readl(mbase,
MUSB_HSDMA_CHANNEL_OFFSET(bchannel, MUSB_HSDMA_COUNT_HIGH));

count = count << 16;

count |= musb_readw(mbase,
MUSB_HSDMA_CHANNEL_OFFSET(bchannel, MUSB_HSDMA_COUNT_LOW));

return count;
}

static inline void musb_write_hsdma_count(void __iomem *mbase,
u8 bchannel, u32 len)
{
musb_writew(mbase,
MUSB_HSDMA_CHANNEL_OFFSET(bchannel, MUSB_HSDMA_COUNT_LOW),
((u16)((u32) len & 0xFFFF)));
musb_writew(mbase,
musb_writel(mbase,
MUSB_HSDMA_CHANNEL_OFFSET(bchannel, MUSB_HSDMA_COUNT_HIGH),
((u16)(((u32) len >> 16) & 0xFFFF)));
len);
}

#endif /* CONFIG_BLACKFIN */
Expand Down

0 comments on commit e0e473c

Please sign in to comment.