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)
commitc0ed8b23b257a84d103764cdbd490ee5e2749da3
tree45629df6db135cf0ceca8362f42256d4dbc57f7f
parentc4d8199ba1a7aa390b06db23f4532e2c1875aefb
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