]> git.itanic.dy.fi Git - linux-stable/commit
usb: gadget: udc: renesas_usb3: fix maxpacket size of ep0
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fri, 3 Aug 2018 03:12:46 +0000 (12:12 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 29 Aug 2018 07:00:30 +0000 (10:00 +0300)
commitdfe1a51d2a36647f74cbad478801efa7cf394376
tree3a1ddf14ed2e0d4fd547ae0698d2898e65c7bd87
parentc37bd52836296ecc9a0fc8060b819089aebdbcde
usb: gadget: udc: renesas_usb3: fix maxpacket size of ep0

This patch fixes an issue that maxpacket size of ep0 is incorrect
for SuperSpeed. Otherwise, CDC NCM class with SuperSpeed doesn't
work correctly on this driver because its control read data size
is more than 64 bytes.

Reported-by: Junki Kato <junki.kato.xk@renesas.com>
Fixes: 746bfe63bba3 ("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>
Tested-by: Junki Kato <junki.kato.xk@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/renesas_usb3.c