]> git.baikalelectronics.ru Git - kernel.git/commit
usb: renesas_usbhs: fix the condition of is_done in usbhsf_dma_push_done
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fri, 22 Aug 2014 11:14:10 +0000 (20:14 +0900)
committerFelipe Balbi <balbi@ti.com>
Wed, 3 Sep 2014 14:15:58 +0000 (09:15 -0500)
commitc5d0f1f1a752eaaf2e05f374fba37a31ffb44687
tree45629df6db135cf0ceca8362f42256d4dbc57f7f
parent8e27ec6440eade2ea6a081c8c5bdcfaf425953ea
usb: renesas_usbhs: fix the condition of is_done in usbhsf_dma_push_done

This patch fixes the condition of is_done in usbhsf_dma_push_done().
This function will be called after a transmission finished by DMAC.
So, the function should check if the transmission packet is short packet
or not. Also the function should call try_run to send the zero packet
by the pio handler if the "*is_done" is not set. Otherwize, the
transaction will not finish if a gadget driver sets the "zero" flag
in a transmission.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/fifo.c