usb: renesas_usbhs: fix usbhsf_fifo_clear() for RX direction
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 27 Sep 2017 09:47:13 +0000 (18:47 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 28 Sep 2017 09:35:01 +0000 (12:35 +0300)
commit0a2ce62b61f2c76d0213edf4e37aaf54a8ddf295
treedec09818e2c0ad2ccaac61d0ce9c202a882bcc64
parent6124607acc88fffeaadf3aacfeb3cc1304c87387
usb: renesas_usbhs: fix usbhsf_fifo_clear() for RX direction

This patch fixes an issue that the usbhsf_fifo_clear() is possible
to cause 10 msec delay if the pipe is RX direction and empty because
the FRDY bit will never be set to 1 in such case.

Fixes: e8d548d54968 ("usb: renesas_usbhs: fifo became independent from pipe.")
Cc: <stable@vger.kernel.org> # v3.1+
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/renesas_usbhs/fifo.c