usb: dwc3: core: Set force_gen1 bit for all applicable SuperSpeed ports
authorKrishna Kurapati <quic_kriskura@quicinc.com>
Tue, 12 Nov 2024 18:20:18 +0000 (23:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Nov 2024 06:13:09 +0000 (07:13 +0100)
commitce25e2a8d82de7f8bcbedd18973e5b8030749d45
treedbb3900c19b63d28b267ee5dbd35660793782774
parent61eb055cd3048ee01ca43d1be924167d33e16fdc
usb: dwc3: core: Set force_gen1 bit for all applicable SuperSpeed ports

Currently if the maximum-speed is set to Super Speed for a 3.1 Gen2
capable controller, the FORCE_GEN1 bit of LLUCTL register is set only
for one SuperSpeed port (or the first port) present. Modify the logic
to set the FORCE_GEN1 bit for all ports if speed is being limited to
Gen-1.

Suggested-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20241112182018.199392-1-quic_kriskura@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h