usb: dwc3: dwc3-octeon: Avoid half-initialized controller state
authorLadislav Michl <ladis@linux-mips.org>
Mon, 31 Jul 2023 09:32:16 +0000 (11:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Aug 2023 12:52:15 +0000 (14:52 +0200)
commitc61101631cdc0a98840a8e4f5a1e571ca94d82fc
treebcf05de41ff601ab21876d60ad50c7132c98f1b6
parent23f87bcac649e91dce5a8bb8bd2908636117d6bd
usb: dwc3: dwc3-octeon: Avoid half-initialized controller state

Power gpio configuration is done from the middle of
dwc3_octeon_clocks_start leaving hardware in half-initialized
state if it fails. As that indicates dwc3_octeon_clocks_start
does more than just initialize the clocks rename it appropriately
and verify power gpio configuration in advance at the beginning
of device probe.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/ZMd/oMRx8ze22/kK@lenoch
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-octeon.c