Title: [6718] branches/2009R1/drivers/usb/musb/musb_host.c: bug[#2424]disable double buffer mode for TX FIFO as well
- Revision
- 6718
- Author
- cliff
- Date
- 2009-06-15 04:28:21 -0500 (Mon, 15 Jun 2009)
Log Message
bug[#2424]disable double buffer mode for TX FIFO as well
Modified Paths
Diff
Modified: branches/2009R1/drivers/usb/musb/musb_host.c (6717 => 6718)
--- branches/2009R1/drivers/usb/musb/musb_host.c 2009-06-15 09:20:05 UTC (rev 6717)
+++ branches/2009R1/drivers/usb/musb/musb_host.c 2009-06-15 09:28:21 UTC (rev 6718)
@@ -740,8 +740,16 @@
| ((hw_ep->max_packet_sz_tx /
packet_sz) - 1) << 11);
else
- musb_writew(epio, MUSB_TXMAXP,
- packet_sz);
+#if defined(CONFIG_BLACKFIN) && ANOMALY_05000465
+ /* Set TXMAXP with the FIFO size of the endpoint
+ * to diable double buffer mode.
+ */
+ musb_writew(epio, MUSB_TXMAXP,
+ hw_ep->max_packet_sz_tx);
+#elif
+ musb_writew(epio, MUSB_TXMAXP,
+ packet_sz);
+#endif
musb_writeb(epio, MUSB_TXINTERVAL, qh->intv_reg);
} else {
musb_writeb(epio, MUSB_NAKLIMIT0, qh->intv_reg);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits