Title: [8213] trunk/drivers/usb/musb/musb_gadget.c: A better way to disable double buffering according to the RTL revision
Revision
8213
Author
cliff
Date
2010-01-21 04:18:51 -0500 (Thu, 21 Jan 2010)

Log Message

A better way to disable double buffering according to the RTL revision

Modified Paths

Diff

Modified: trunk/drivers/usb/musb/musb_gadget.c (8212 => 8213)


--- trunk/drivers/usb/musb/musb_gadget.c	2010-01-21 09:00:09 UTC (rev 8212)
+++ trunk/drivers/usb/musb/musb_gadget.c	2010-01-21 09:18:51 UTC (rev 8213)
@@ -922,10 +922,10 @@
 		 * likewise high bandwidth periodic tx
 		 */
 		/* Set TXMAXP with the FIFO size of the endpoint
-		 * to disable double buffering mode. It seems that double
-		 * buffering has problem if musb RTL revision number <= 1.9.
+		 * to disable double buffering mode. Currently, It seems that double
+		 * buffering has problem if musb RTL revision number < 2.0.
 		 */
-		if (MUSB_HWVERS_MAJOR(musb->hwvers) <= 1 && MUSB_HWVERS_MINOR(musb->hwvers) <= 9)
+		if (musb->hwvers < MUSB_HWVERS_2000)
 			musb_writew(regs, MUSB_TXMAXP, hw_ep->max_packet_sz_tx);
 		else
 			musb_writew(regs, MUSB_TXMAXP, tmp);
@@ -961,7 +961,7 @@
 		/* Set RXMAXP with the FIFO size of the endpoint
 		 * to disable double buffering mode.
 		 */
-		if (MUSB_HWVERS_MAJOR(musb->hwvers) <= 1 && MUSB_HWVERS_MINOR(musb->hwvers) <= 9)
+		if (musb->hwvers < MUSB_HWVERS_2000)
 			musb_writew(regs, MUSB_RXMAXP, hw_ep->max_packet_sz_rx);
 		else
 			musb_writew(regs, MUSB_RXMAXP, tmp);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to