]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: udc: renesas_usb3: Fix return value of usb3_write_pipe()
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 25 Sep 2017 08:01:25 +0000 (17:01 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 28 Sep 2017 09:31:51 +0000 (12:31 +0300)
commit5b4b320756c197b4ce9ee6f66ad4908f0e26a51b
tree119e3fe5c2b15db45c6fa662fc353103cc9584dc
parent941bde0d39c773164c846930f26ee8d0867a9787
usb: gadget: udc: renesas_usb3: Fix return value of usb3_write_pipe()

This patch fixes an issue that this driver cannot go status stage
in control read when the req.zero is set to 1 and the len in
usb3_write_pipe() is set to 0. Otherwise, if we use g_ncm driver,
usb enumeration takes long time (5 seconds or more).

Fixes: 74cd6cb3d945 ("usb: gadget: renesas_usb3: add support for Renesas USB3.0 peripheral controller")
Cc: <stable@vger.kernel.org> # v4.5+
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