]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: dwc3: Remove DWC3 locking during gadget suspend/resume
authorWesley Cheng <quic_wcheng@quicinc.com>
Thu, 1 Sep 2022 19:36:22 +0000 (12:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Aug 2023 12:23:28 +0000 (14:23 +0200)
commit2fa487a9466760a4fb6f147aed6219379dabfc2e
treea904ff621f0b8084b42c2b037791b6e3f165bc13
parent7dfb384e76ee72e57c0df198baf0056533238741
usb: dwc3: Remove DWC3 locking during gadget suspend/resume

[ Upstream commit 5265397f94424eaea596026fd34dc7acf474dcec ]

Remove the need for making dwc3_gadget_suspend() and dwc3_gadget_resume()
to be called in a spinlock, as dwc3_gadget_run_stop() could potentially
take some time to complete.

Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Link: https://lore.kernel.org/r/20220901193625.8727-3-quic_wcheng@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: c8540870af4c ("usb: dwc3: gadget: Improve dwc3_gadget_suspend() and dwc3_gadget_resume()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/gadget.c