All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] usb: musb: setup TXCOUNT for Blackfin musb
@ 2010-08-09 18:57 Mike Frysinger
  2010-08-12 17:57 ` Remy Bohmer
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2010-08-09 18:57 UTC (permalink / raw)
  To: u-boot

From: Bryan Wu <bryan.wu@analog.com>

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

Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 drivers/usb/musb/musb_hcd.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/musb/musb_hcd.c b/drivers/usb/musb/musb_hcd.c
index dd2aa7f..f14e12f 100644
--- a/drivers/usb/musb/musb_hcd.c
+++ b/drivers/usb/musb/musb_hcd.c
@@ -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));
-- 
1.7.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] usb: musb: setup TXCOUNT for Blackfin musb
  2010-08-09 18:57 [U-Boot] [PATCH] usb: musb: setup TXCOUNT for Blackfin musb Mike Frysinger
@ 2010-08-12 17:57 ` Remy Bohmer
  0 siblings, 0 replies; 2+ messages in thread
From: Remy Bohmer @ 2010-08-12 17:57 UTC (permalink / raw)
  To: u-boot

Hi,

2010/8/9 Mike Frysinger <vapier@gentoo.org>:
> From: Bryan Wu <bryan.wu@analog.com>
>
> The Blackfin implementation of musb has a TXCOUNT register that needs to
> be programmed when transmitting data.
>
> Signed-off-by: Bryan Wu <bryan.wu@analog.com>
> Signed-off-by: Cliff Cai <cliff.cai@analog.com>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> ?drivers/usb/musb/musb_hcd.c | ? ?5 +++++
> ?1 files changed, 5 insertions(+), 0 deletions(-)

Applied to u-boot-usb.
Thanks.

Remy

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-12 17:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-09 18:57 [U-Boot] [PATCH] usb: musb: setup TXCOUNT for Blackfin musb Mike Frysinger
2010-08-12 17:57 ` Remy Bohmer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.