|
@@ -926,13 +926,9 @@ static int musb_gadget_enable(struct usb_ep *ep,
|
|
* likewise high bandwidth periodic tx
|
|
* likewise high bandwidth periodic tx
|
|
*/
|
|
*/
|
|
/* Set TXMAXP with the FIFO size of the endpoint
|
|
/* Set TXMAXP with the FIFO size of the endpoint
|
|
- * to disable double buffering mode. Currently, It seems that double
|
|
|
|
- * buffering has problem if musb RTL revision number < 2.0.
|
|
|
|
|
|
+ * to disable double buffering mode.
|
|
*/
|
|
*/
|
|
- if (musb->hwvers < MUSB_HWVERS_2000)
|
|
|
|
- musb_writew(regs, MUSB_TXMAXP, hw_ep->max_packet_sz_tx);
|
|
|
|
- else
|
|
|
|
- musb_writew(regs, MUSB_TXMAXP, musb_ep->packet_sz | (musb_ep->hb_mult << 11));
|
|
|
|
|
|
+ musb_writew(regs, MUSB_TXMAXP, musb_ep->packet_sz | (musb_ep->hb_mult << 11));
|
|
|
|
|
|
csr = MUSB_TXCSR_MODE | MUSB_TXCSR_CLRDATATOG;
|
|
csr = MUSB_TXCSR_MODE | MUSB_TXCSR_CLRDATATOG;
|
|
if (musb_readw(regs, MUSB_TXCSR)
|
|
if (musb_readw(regs, MUSB_TXCSR)
|
|
@@ -968,10 +964,7 @@ static int musb_gadget_enable(struct usb_ep *ep,
|
|
/* Set RXMAXP with the FIFO size of the endpoint
|
|
/* Set RXMAXP with the FIFO size of the endpoint
|
|
* to disable double buffering mode.
|
|
* to disable double buffering mode.
|
|
*/
|
|
*/
|
|
- if (musb->hwvers < MUSB_HWVERS_2000)
|
|
|
|
- musb_writew(regs, MUSB_RXMAXP, hw_ep->max_packet_sz_rx);
|
|
|
|
- else
|
|
|
|
- musb_writew(regs, MUSB_RXMAXP, musb_ep->packet_sz | (musb_ep->hb_mult << 11));
|
|
|
|
|
|
+ musb_writew(regs, MUSB_RXMAXP, musb_ep->packet_sz | (musb_ep->hb_mult << 11));
|
|
|
|
|
|
/* force shared fifo to OUT-only mode */
|
|
/* force shared fifo to OUT-only mode */
|
|
if (hw_ep->is_shared_fifo) {
|
|
if (hw_ep->is_shared_fifo) {
|