Title: [6715] branches/2009R1/drivers/usb/musb/musb_gadget.c: bug[#5255]disable double buffer mode for TX FIFO as well
- Revision
- 6715
- Author
- cliff
- Date
- 2009-06-15 03:50:27 -0500 (Mon, 15 Jun 2009)
Log Message
bug[#5255]disable double buffer mode for TX FIFO as well
Modified Paths
Diff
Modified: branches/2009R1/drivers/usb/musb/musb_gadget.c (6714 => 6715)
--- branches/2009R1/drivers/usb/musb/musb_gadget.c 2009-06-15 08:23:41 UTC (rev 6714)
+++ branches/2009R1/drivers/usb/musb/musb_gadget.c 2009-06-15 08:50:27 UTC (rev 6715)
@@ -916,7 +916,14 @@
/* REVISIT if can_bulk_split(), use by updating "tmp";
* likewise high bandwidth periodic tx
*/
- musb_writew(regs, MUSB_TXMAXP, tmp);
+#if defined(CONFIG_BLACKFIN) && ANOMALY_05000465
+ /* Set TXMAXP with the FIFO size of the endpoint
+ * to diable double buffer mode.
+ */
+ musb_writew(regs, MUSB_TXMAXP, hw_ep->max_packet_sz_tx);
+#elif
+ musb_writew(regs, MUSB_TXMAXP, tmp);
+#endif
csr = MUSB_TXCSR_MODE | MUSB_TXCSR_CLRDATATOG;
if (musb_readw(regs, MUSB_TXCSR)
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits