Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133535
b: refs/heads/master
c: 3223371
h: refs/heads/master
i:
  133533: ae16178
  133531: 11d1610
  133527: 2a05886
  133519: 8f1052d
  133503: fcfbd48
v: v3
  • Loading branch information
Giuseppe GORGOGLIONE authored and Greg Kroah-Hartman committed Mar 24, 2009
1 parent 773647e commit 65e6149
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 1e0320f0d46022d12ddc84516cbdb8865e8cd744
refs/heads/master: 322337168f22e8245aae7f38e84c5711cd4c1265
4 changes: 3 additions & 1 deletion trunk/drivers/usb/musb/musb_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -478,10 +478,11 @@ static inline void musb_configure_ep0(struct musb *musb)
static inline int musb_read_fifosize(struct musb *musb,
struct musb_hw_ep *hw_ep, u8 epnum)
{
void *mbase = musb->mregs;
u8 reg = 0;

/* read from core using indexed model */
reg = musb_readb(hw_ep->regs, 0x10 + MUSB_FIFOSIZE);
reg = musb_readb(mbase, MUSB_EP_OFFSET(epnum, MUSB_FIFOSIZE));
/* 0's returned when no more endpoints */
if (!reg)
return -ENODEV;
Expand All @@ -508,6 +509,7 @@ static inline void musb_configure_ep0(struct musb *musb)
{
musb->endpoints[0].max_packet_sz_tx = MUSB_EP0_FIFOSIZE;
musb->endpoints[0].max_packet_sz_rx = MUSB_EP0_FIFOSIZE;
musb->endpoints[0].is_shared_fifo = true;
}
#endif /* CONFIG_BLACKFIN */

Expand Down

0 comments on commit 65e6149

Please sign in to comment.