diff options
author | Pawel Laszczak <[email protected]> | 2024-09-06 06:48:54 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-09-11 15:35:23 +0200 |
commit | 1702bec4477cc7d31adb4a760d14d33fac928b7a (patch) | |
tree | 919e20c645fd99397e84aa363fe6e88ccbca962f /drivers/usb/misc/onboard_usb_dev.c | |
parent | 77e85107a7717ecb755cf77a2752a2aadd28c4e3 (diff) |
usb: cdnsp: Fix incorrect usb_request status
Fix changes incorrect usb_request->status returned during disabling
endpoints. Before fix the status returned during dequeuing requests
while disabling endpoint was ECONNRESET.
Patch change it to ESHUTDOWN.
Patch fixes issue detected during testing UVC gadget.
During stopping streaming the class starts dequeuing usb requests and
controller driver returns the -ECONNRESET status. After completion
requests the class or application "uvc-gadget" try to queue this
request again. Changing this status to ESHUTDOWN cause that UVC assumes
that endpoint is disabled, or device is disconnected and stops
re-queuing usb requests.
Fixes: 3d82904559f4 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver")
cc: [email protected]
Signed-off-by: Pawel Laszczak <[email protected]>
Reviewed-by: Peter Chen <[email protected]>
Link: https://lore.kernel.org/r/PH7PR07MB9538E8CA7A2096AAF6A3718FDD9E2@PH7PR07MB9538.namprd07.prod.outlook.com
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/misc/onboard_usb_dev.c')
0 files changed, 0 insertions, 0 deletions