usb: renesas_usbhs: Don't disable the pipe if Control write status stage
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tue, 26 May 2015 11:13:43 +0000 (20:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 07:14:07 +0000 (16:14 +0900)
commitc5d496ad98c212e7d074040504b7737afb4d8bd7
tree122be2742d54160f0314959e7f9065afa8eb1ef6
parent5e582ff309288898be3744f093ce2d726f4747fe
usb: renesas_usbhs: Don't disable the pipe if Control write status stage

This patch fixes an issue that sometimes this controller is not able
to complete the Control write status stage.

This driver should enable DCPCTR.CCPL and PID_BUF to complete the status
stage. However, if this driver detects the ctrl_stage interruption first
before the control write data is received, this driver will clear the
PID_BUF wrongly in the usbhsf_pio_try_pop(). To avoid this issue, this
patch doesn't clear the PID_BUF in the usbhsf_pio_try_pop().
(Since also the privious code doesn't disable the PID_BUF after a control
 transfer was finished, this patch doesn't have any side efforts.)

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/renesas_usbhs/fifo.c