From: Yoshihiro Shimoda Date: Fri, 22 Aug 2014 11:14:10 +0000 (+0900) Subject: usb: renesas_usbhs: fix the condition of is_done in usbhsf_dma_push_done X-Git-Tag: fixes-for-v3.18-merge-window~137^2~23^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0ed8b23b257a84d103764cdbd490ee5e2749da3;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed