linux-stable/drivers/usb/dwc2
Heiner Kallweit 4650c86087 usb: dwc2: fix wrong order of phy_power_on and phy_init
commit f9b995b49a upstream.

Since 1599069a62 ("phy: core: Warn when phy_power_on is called before
phy_init") the driver complains. In my case (Amlogic SoC) the warning
is: phy phy-fe03e000.phy.2: phy_power_on was called before phy_init
So change the order of the two calls. The same change has to be done
to the order of phy_exit() and phy_power_off().

Fixes: 09a75e8577 ("usb: dwc2: refactor common low-level hw code to platform.c")
Cc: stable@vger.kernel.org
Acked-by: Minas Harutyunyan <hminas@synopsys.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/dfcc6b40-2274-4e86-e73c-5c5e6aa3e046@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-09-15 12:17:04 +02:00
..
core.c
core.h usb: dwc2: Fix gadget DMA unmap direction 2021-05-22 10:59:46 +02:00
core_intr.c usb: dwc2: Fix build in periphal-only mode 2021-06-10 13:24:06 +02:00
debug.h
debugfs.c
gadget.c usb: dwc2: gadget: don't reset gadget's driver->bus 2022-06-14 16:59:37 +02:00
hcd.c usb: dwc2: Fix memory leak in dwc2_hcd_init 2022-06-25 11:49:16 +02:00
hcd.h
hcd_ddma.c
hcd_intr.c usb: dwc2: Make "trimming xfer length" a debug message 2021-03-04 09:39:35 +01:00
hcd_queue.c usb: dwc2: hcd_queue: Fix use of floating point literal 2021-12-01 09:27:38 +01:00
hw.h
Kconfig
Makefile
params.c
pci.c
platform.c usb: dwc2: fix wrong order of phy_power_on and phy_init 2022-09-15 12:17:04 +02:00