]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: dwc3: keep susphy enabled during exit to avoid controller faults
authorUdipto Goswami <udipto.goswami@oss.qualcomm.com>
Wed, 26 Nov 2025 05:42:21 +0000 (11:12 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Jan 2026 11:57:14 +0000 (12:57 +0100)
commit1f069425f4f089d3c92064f276e90cf8170df182
treebd945fc50bf76df03bb62a7291018c00232c4142
parent5a45d75da3b79abe0edf3608ecd58f751ffe5bbf
usb: dwc3: keep susphy enabled during exit to avoid controller faults

commit e1003aa7ec9eccdde4c926bd64ef42816ad55f25 upstream.

On some platforms, switching USB roles from host to device can trigger
controller faults due to premature PHY power-down. This occurs when the
PHY is disabled too early during teardown, causing synchronization
issues between the PHY and controller.

Keep susphy enabled during dwc3_host_exit() and dwc3_gadget_exit()
ensures the PHY remains in a low-power state capable of handling
required commands during role switch.

Cc: stable <stable@kernel.org>
Fixes: 6d735722063a ("usb: dwc3: core: Prevent phy suspend during init")
Suggested-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Udipto Goswami <udipto.goswami@oss.qualcomm.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://patch.msgid.link/20251126054221.120638-1-udipto.goswami@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c
drivers/usb/dwc3/host.c