Commit 8dd7a230 authored by Bryan Wu's avatar Bryan Wu Committed by Remy Bohmer

usb: musb: setup TXCOUNT for Blackfin musb

The Blackfin implementation of musb has a TXCOUNT register that needs to
be programmed when transmitting data.
Signed-off-by: default avatarBryan Wu <>
Signed-off-by: default avatarCliff Cai <>
Signed-off-by: default avatarMike Frysinger <>
parent 2d941de9
......@@ -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];
/* Set the transfer data size */
writew(nextlen, &musbr->txcount);
/* Write the data to the FIFO */
write_fifo(MUSB_BULK_EP, nextlen,
(void *)(((u8 *)buffer) + txlen));
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment