Commit cd6fb006 authored by Thinh Nguyen's avatar Thinh Nguyen Committed by sanglipeng
Browse files

usb: dwc3: gadget: Return -ESHUTDOWN on ep disable

stable inclusion
from stable-v5.10.157
commit cff7523ab8b87e958c31a52ac7ac31112de269c8
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7MU59

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cff7523ab8b87e958c31a52ac7ac31112de269c8



--------------------------------

[ Upstream commit ffb9da4a ]

The usb_request API clearly noted that removed requests due to disabled
endpoint should have -ESHUTDOWN status returned. Don't change this
behavior.

Fixes: b44c0e7f ("usb: dwc3: gadget: conditionally remove requests")
Signed-off-by: default avatarThinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/3421859485cb32d77e2068549679a6c07a7797bc.1667875427.git.Thinh.Nguyen@synopsys.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: f90f5afd ("usb: dwc3: gadget: Clear ep descriptor last")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 415bfef8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment