usb: gadget: udc: renesas_usb3: fix zlp transfer by the dmac
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tue, 18 Jul 2017 12:26:41 +0000 (21:26 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 18 Jul 2017 13:20:08 +0000 (16:20 +0300)
commitebe6b2b81464a2c083542feb1a1a6c78a2268151
treea1909700039512e421f59846e5d572e7c0a0b22e
parent80584efcc6bc99871433cc5b8f639cc0154962ea
usb: gadget: udc: renesas_usb3: fix zlp transfer by the dmac

The dedicated dmac can transfer a zero-length-packet (zlp) if some bits
of the USB_COM_CON register. However, the commit 2d4aa21a73ba ("usb:
gadget: udc: renesas_usb3: add support for dedicated DMAC") didn't set
the bits to 1. So, this patch fixes it.

Fixes: 2d4aa21a73b ("usb: gadget: udc: renesas_usb3: add support for dedicated DMAC)
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/renesas_usb3.c