summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorTejas Joglekar <tejas.joglekar@synopsys.com>2019-01-22 08:56:51 +0100
committerFelipe Balbi <felipe.balbi@linux.intel.com>2019-01-28 14:27:07 +0100
commit1e19cdc8060227b0802bda6bc0bd22b23679ba32 (patch)
treed8f38b00ff465d8a098f147a7950ddcec1251749 /drivers/usb/gadget
parentLinux 5.0-rc4 (diff)
downloadlinux-1e19cdc8060227b0802bda6bc0bd22b23679ba32.tar.xz
linux-1e19cdc8060227b0802bda6bc0bd22b23679ba32.zip
usb: dwc3: gadget: Handle 0 xfer length for OUT EP
For OUT endpoints, zero-length transfers require MaxPacketSize buffer as per the DWC_usb3 programming guide 3.30a section 4.2.3.3. This patch fixes this by explicitly checking zero length transfer to correctly pad up to MaxPacketSize. Fixes: c6267a51639b ("usb: dwc3: gadget: align transfers to wMaxPacketSize") Cc: stable@vger.kernel.org Signed-off-by: Tejas Joglekar <joglekar@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget')
0 files changed, 0 insertions, 0 deletions