]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: dwc3: core: Check all ports when set phy suspend
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Tue, 2 Jul 2024 00:19:14 +0000 (00:19 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2024 14:05:48 +0000 (16:05 +0200)
commit179264157bbaf3d169b184160d0b5283f8a50e73
treec4013373d4a0999d4d9ebbcda283df0d6e9b94ad
parent62ce9ef1479729b1a3f8a1b19900e28d68b3625e
usb: dwc3: core: Check all ports when set phy suspend

The dwc3_enable_susphy() applies to all available ports. After the
introduction of multi-port in dwc3, we now know the number of ports. Go
through the phy suspend registers of each port to enable/disable phy
suspend in dwc3_enable_susphy().

Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/31e18192c607dff0a7e5ca139dd5737d2224122a.1719879346.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.c