]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Oct 2017 09:56:08 +0000 (11:56 +0200)
commit5cba2d0244077c159524cc07470e45a2d4c331e9
treec210acf8d7b86d3d193c4519a5bf56a4ded3a77a
parenta86eb002d151932f55206f4e3b587805dc916093
usb: gadget: udc: renesas_usb3: Fix return value of usb3_write_pipe()

commit 447b8a01b84f048d93d43bfe1fcaa4fcc56595cc upstream.

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: 746bfe63bba3 ("usb: gadget: renesas_usb3: add support for Renesas USB3.0 peripheral controller")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/renesas_usb3.c