usb: renesas_usbhs: Fix fifo unclear in usbhsf_prepare_pop
authorKazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
Tue, 26 May 2015 11:13:42 +0000 (20:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 07:14:07 +0000 (16:14 +0900)
commit5e582ff309288898be3744f093ce2d726f4747fe
tree665b6c60a7993196a4636a8940190658ef7cb3fb
parent138c3f03b017e261316a4f1ec793e1ff74516def
usb: renesas_usbhs: Fix fifo unclear in usbhsf_prepare_pop

This patch fixes an issue for control write. When usbhsf_prepare_pop()
is called after this driver called a gadget setup function, this controller
doesn't receive the control write data. So, this patch adds a code to clear
the fifo for control write in usbhsf_prepare_pop().

Signed-off-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
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