diff options
author | Tejas Joglekar <[email protected]> | 2019-01-22 13:26:51 +0530 |
---|---|---|
committer | Felipe Balbi <[email protected]> | 2019-01-28 15:27:07 +0200 |
commit | 1e19cdc8060227b0802bda6bc0bd22b23679ba32 (patch) | |
tree | d8f38b00ff465d8a098f147a7950ddcec1251749 /net/lapb/lapb_in.c | |
parent | f17b5f06cb92ef2250513a1e154c47b78df07d40 (diff) |
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: [email protected]
Signed-off-by: Tejas Joglekar <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions