]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: dwc3: qcom: Add shutdown handler
authorPrashanth K <prashanth.k@oss.qualcomm.com>
Fri, 25 Jul 2025 06:21:58 +0000 (11:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Aug 2025 14:52:46 +0000 (16:52 +0200)
commit784ad808ae864490b93db0f650b8b6417eb7ce68
tree53b3a7d210bddaaf14d4f09a7104a67046964408
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
usb: dwc3: qcom: Add shutdown handler

Currently during system reboot, SMMU disables its translations
while devices like USB may still be actively using DMA buffers.
This can lead to NOC errors and system crashes due to invalid
memory access.

Address this by adding a shutdown callback to dwc3-qcom, which
ensures proper teardown of UDC stack and prevents DWC3 controller
from accessing memory after SMMU translation is disabled. Reuse
the existing remove callback for this purpose.

Signed-off-by: Prashanth K <prashanth.k@oss.qualcomm.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20250725062158.2418961-1-prashanth.k@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-qcom.c