Title: [8253] trunk/drivers/usb/musb/musb_host.c: musb: move double buffer disabling to a runtime version based check
Revision
8253
Author
vapier
Date
2010-01-28 20:28:53 -0500 (Thu, 28 Jan 2010)

Log Message

musb: move double buffer disabling to a runtime version based check

Modified Paths


Diff

Modified: trunk/drivers/usb/musb/musb_host.c (8252 => 8253)


--- trunk/drivers/usb/musb/musb_host.c	2010-01-29 01:27:04 UTC (rev 8252)
+++ trunk/drivers/usb/musb/musb_host.c	2010-01-29 01:28:53 UTC (rev 8253)
@@ -609,15 +609,14 @@
 	musb_writeb(ep->regs, MUSB_RXTYPE, qh->type_reg);
 	musb_writeb(ep->regs, MUSB_RXINTERVAL, qh->intv_reg);
 	/* NOTE: bulk combining rewrites high bits of maxpacket */
-#if defined(CONFIG_BLACKFIN) && ANOMALY_05000465
 	/* Set RXMAXP with the FIFO size of the endpoint
 	 * to disable double buffer mode.
 	 */
-	musb_writew(ep->regs, MUSB_RXMAXP, ep->max_packet_sz_rx);
-#else
-	musb_writew(ep->regs, MUSB_RXMAXP,
-			qh->maxpacket | ((qh->hb_mult - 1) << 11));
-#endif
+	if (musb->hwvers < MUSB_HWVERS_2000)
+		musb_writew(ep->regs, MUSB_RXMAXP, ep->max_packet_sz_rx);
+	else
+		musb_writew(ep->regs, MUSB_RXMAXP,
+				qh->maxpacket | ((qh->hb_mult - 1) << 11));
 
 	ep->rx_reinit = 0;
 }
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to