diff options
author | 2022-07-04 16:18:12 +0200 | |
---|---|---|
committer | 2022-07-08 15:00:35 +0200 | |
commit | 8affe37c525d800a2628c4ecfaed13b77dc5634a (patch) | |
tree | cc11fa0513f2b6dbf0f4283e68b8804914f163ec /drivers/usb/misc/onboard_usb_hub_pdevs.c | |
parent | usb: dwc3: gadget: refactor dwc3_repare_one_trb (diff) | |
download | linux-dev-8affe37c525d800a2628c4ecfaed13b77dc5634a.tar.xz linux-dev-8affe37c525d800a2628c4ecfaed13b77dc5634a.zip |
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: 40d829fb2ec6 ("usb: dwc3: gadget: Correct ISOC DATA PIDs for short packets")
Cc: stable <stable@kernel.org>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20220704141812.1532306-3-m.grzeschik@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc/onboard_usb_hub_pdevs.c')
0 files changed, 0 insertions, 0 deletions