Commit 93602bed authored by Michael Grzeschik's avatar Michael Grzeschik Committed by Dan Vacura
Browse files

UPSTREAM: usb: dwc3: gadget: fix high speed multiplier setting



For High-Speed Transfers the prepare_one_trb function is calculating the
multiplier setting for the trb based on the length parameter of the trb
currently prepared. This assumption is wrong. For trbs with a sg list,
the length of the actual request has to be taken instead.

Fixes: 40d829fb ("usb: dwc3: gadget: Correct ISOC DATA PIDs for short packets")
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20220704141812.1532306-3-m.grzeschik@pengutronix.de


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 249635012
(cherry picked from commit 8affe37c)
Change-Id: Iadae731c901b605832b0f819f1c15b57326cfde2
Signed-off-by: default avatarDan Vacura <w36195@motorola.com>
parent 14bd2d14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment