Title: [6650] branches/2009R1/drivers/usb/musb/musb_gadget.c: bug[#4120],[#4934],[#4933]Disable double buffer mode which causes rx side abnormal sometimes
- Revision
- 6650
- Author
- cliff
- Date
- 2009-06-11 04:33:52 -0500 (Thu, 11 Jun 2009)
Log Message
bug[#4120],[#4934],[#4933]Disable double buffer mode which causes rx side abnormal sometimes
Modified Paths
Diff
Modified: branches/2009R1/drivers/usb/musb/musb_gadget.c (6649 => 6650)
--- branches/2009R1/drivers/usb/musb/musb_gadget.c 2009-06-11 09:29:59 UTC (rev 6649)
+++ branches/2009R1/drivers/usb/musb/musb_gadget.c 2009-06-11 09:33:52 UTC (rev 6650)
@@ -946,8 +946,14 @@
/* REVISIT if can_bulk_combine() use by updating "tmp"
* likewise high bandwidth periodic rx
*/
- musb_writew(regs, MUSB_RXMAXP, tmp);
-
+#if defined(CONFIG_BLACKFIN) && ANOMALY_05000465
+ /* Set RXMAXP with the FIFO size of the endpoint
+ * to diable double buffer mode.
+ */
+ musb_writew(regs, MUSB_RXMAXP, hw_ep->max_packet_sz_rx);
+#elif
+ musb_writew(regs, MUSB_RXMAXP, tmp);
+#endif
/* force shared fifo to OUT-only mode */
if (hw_ep->is_shared_fifo) {
csr = musb_readw(regs, MUSB_TXCSR);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits