From: Sasha Levin Date: Tue, 1 Sep 2020 02:27:59 +0000 (-0400) Subject: Add missing annotations in usb-dwc3-gadget-fix-handling-zlp.patch X-Git-Tag: v4.4.235~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a21c95942ec2483973da2c169fce51575b904844;p=thirdparty%2Fkernel%2Fstable-queue.git Add missing annotations in usb-dwc3-gadget-fix-handling-zlp.patch Signed-off-by: Sasha Levin --- diff --git a/queue-4.19/usb-dwc3-gadget-fix-handling-zlp.patch b/queue-4.19/usb-dwc3-gadget-fix-handling-zlp.patch index 25422c7632f..bf57d254e53 100644 --- a/queue-4.19/usb-dwc3-gadget-fix-handling-zlp.patch +++ b/queue-4.19/usb-dwc3-gadget-fix-handling-zlp.patch @@ -5,6 +5,8 @@ Subject: usb: dwc3: gadget: Fix handling ZLP From: Thinh Nguyen +[ Upstream commit d2ee3ff79e6a3d4105e684021017d100524dc560 ] + The usb_request->zero doesn't apply for isoc. Also, if we prepare a 0-length (ZLP) TRB for the OUT direction, we need to prepare an extra TRB to pad up to the MPS alignment. Use the same bounce buffer for the @@ -15,6 +17,7 @@ Fixes: d6e5a549cc4d ("usb: dwc3: simplify ZLP handling") Fixes: 04c03d10e507 ("usb: dwc3: gadget: handle request->zero") Signed-off-by: Thinh Nguyen Signed-off-by: Felipe Balbi +Signed-off-by: Sasha Levin --- drivers/usb/dwc3/gadget.c | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/queue-5.4/usb-dwc3-gadget-fix-handling-zlp.patch b/queue-5.4/usb-dwc3-gadget-fix-handling-zlp.patch index 6c16b61bcc9..fc6acb1dee9 100644 --- a/queue-5.4/usb-dwc3-gadget-fix-handling-zlp.patch +++ b/queue-5.4/usb-dwc3-gadget-fix-handling-zlp.patch @@ -5,6 +5,8 @@ Subject: usb: dwc3: gadget: Fix handling ZLP From: Thinh Nguyen +[ Upstream commit d2ee3ff79e6a3d4105e684021017d100524dc560 ] + The usb_request->zero doesn't apply for isoc. Also, if we prepare a 0-length (ZLP) TRB for the OUT direction, we need to prepare an extra TRB to pad up to the MPS alignment. Use the same bounce buffer for the @@ -15,6 +17,7 @@ Fixes: d6e5a549cc4d ("usb: dwc3: simplify ZLP handling") Fixes: 04c03d10e507 ("usb: dwc3: gadget: handle request->zero") Signed-off-by: Thinh Nguyen Signed-off-by: Felipe Balbi +Signed-off-by: Sasha Levin --- drivers/usb/dwc3/gadget.c | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-)