Skip to content

Commit 8b27851

Browse files
liubiingregkh
authored andcommitted
usb: musb: fix tx fifo flush handling again
commit 45d73860530a14c608f410b91c6c341777bfa85d upstream. commit 68fe05e ("usb: musb: fix tx fifo flush handling") drops the 1ms delay trying to solve the long disconnect time issue when application queued many tx urbs. However, the 1ms delay is needed for some use cases, for example, without the delay, reconnecting AR9271 WIFI dongle no longer works if the connection is dropped from the AP. So let's add back the 1ms delay in musb_h_tx_flush_fifo(), and solve the long disconnect time problem with a separate patch for usb_hcd_flush_endpoint(). Signed-off-by: Bin Liu <b-liu@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 8a0c225 commit 8b27851

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/usb/musb/musb_host.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ static void musb_h_tx_flush_fifo(struct musb_hw_ep *ep)
138138
"Could not flush host TX%d fifo: csr: %04x\n",
139139
ep->epnum, csr))
140140
return;
141+
mdelay(1);
141142
}
142143
}
143144

0 commit comments

Comments
 (0)