]> git.itanic.dy.fi Git - linux-stable/commit
phy: core: Warn when phy_power_on is called before phy_init
authorJules Maselbas <jmaselbas@kalray.eu>
Thu, 7 Apr 2022 10:21:08 +0000 (12:21 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 20 Apr 2022 09:15:15 +0000 (14:45 +0530)
commit1599069a62c6179fdde9f6e5b54d44531064a79c
treed048757d3b45531cd62b5570a9fc302afc09655d
parentbd5bd02e1517352ff215879362624f4ca6575bdc
phy: core: Warn when phy_power_on is called before phy_init

A warning when the order of phy operation is mixed up by drivers,
this is an atempt to make the phy usage more uniform across (usb)
drivers.

Signed-off-by: Jules Maselbas <jmaselbas@kalray.eu>
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: Amelie DELAUNAY <amelie.delaunay@foss.st.com>
Cc: Minas Harutyunyan <hminas@synopsys.com>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Link: https://lore.kernel.org/r/20220407102108.24211-4-jmaselbas@kalray.eu
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/phy-core.c