OSDN Git Service

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)
committerFelipe Balbi <balbi@ti.com>
Tue, 26 May 2015 15:21:48 +0000 (10:21 -0500)
commite73d42f15f90614538edeb5d4102f847105f86f2
treeecacf781dec5e9f0839d56d62949ab8a4f9ad74c
parent342f39a6c8d34d638a87b7d5f2156adc4db2585c
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: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/fifo.c