Skip to contentSkip to conversation

usb: musb: setup TXCOUNT for Blackfin musb

PATCH New Mike Frysinger 2 participants 2 messages Aug 9, 2010 – Aug 12, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: musb: setup TXCOUNT for Blackfin musb

From: Bryan Wu <[email protected]>

The Blackfin implementation of musb has a TXCOUNT register that needs to be programmed when transmitting data.

---
 drivers/usb/musb/musb_hcd.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/usb/musb/musb_hcd.c +5 -0
index dd2aa7f..f14e12f 100644
@@ -987,6 +987,11 @@ int submit_bulk_msg(struct usb_device *dev, unsigned long pipe,
 			nextlen = ((len-txlen) < dev->epmaxpacketout[ep]) ?
 					(len-txlen) : dev->epmaxpacketout[ep];
 
+#ifdef CONFIG_USB_BLACKFIN
+			/* Set the transfer data size */
+			writew(nextlen, &musbr->txcount);
+#endif
+
 			/* Write the data to the FIFO */
 			write_fifo(MUSB_BULK_EP, nextlen,
 					(void *)(((u8 *)buffer) + txlen));
Signature · 1 line
1.7.2
#1 lore raw

PATCH 1/1 usb: musb: setup TXCOUNT for Blackfin musb

Hi,

2010/8/9 Mike Frysinger <[email protected]>:

Quoted 11 lines

From: Bryan Wu <[email protected]>

The Blackfin implementation of musb has a TXCOUNT register that needs to be programmed when transmitting data.

---
?drivers/usb/musb/musb_hcd.c | ? ?5 +++++
?1 files changed, 5 insertions(+), 0 deletions(-)

Applied to u-boot-usb.
Thanks.

Remy