aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/common/debug.c
diff options
context:
space:
mode:
authorMichael Grzeschik <[email protected]>2022-07-20 21:35:23 +0000
committerGreg Kroah-Hartman <[email protected]>2022-08-19 09:03:44 +0000
commitb44c0e7fef51ee7e8ca8c6efbf706f5613787100 (patch)
treee91bd753962e9fd44149f3686c1c45fb2637ecee /drivers/usb/common/debug.c
parentUSB: host: npcm: Add NPCM8XX support (diff)
downloadkernel-b44c0e7fef51ee7e8ca8c6efbf706f5613787100.tar.gz
kernel-b44c0e7fef51ee7e8ca8c6efbf706f5613787100.zip
usb: dwc3: gadget: conditionally remove requests
The functions stop_active_transfers and ep_disable are both calling remove_requests. This functions in both cases will giveback the requests with status ESHUTDOWN, which also represents an physical disconnection. For ep_disable this is not true. This patch adds the status parameter to remove_requests and sets the status to ECONNRESET on ep_disable. Signed-off-by: Michael Grzeschik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/common/debug.c')
0 files changed, 0 insertions, 0 deletions