All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND v3 0/3] Cleanup the call ordering of phy_init and phy_power_on
@ 2022-04-07 10:21 ` Jules Maselbas
  0 siblings, 0 replies; 18+ messages in thread
From: Jules Maselbas @ 2022-04-07 10:21 UTC (permalink / raw)
  To: linux-phy
  Cc: linux-usb, Kishon Vijay Abraham I, Vinod Koul, Ahmad Fatoum,
	Minas Harutyunyan, Amelie DELAUNAY, Yann Sionneau,
	Michael Grzeschik, Randy Dunlap, Arnd Bergmann, Jules Maselbas

Hi,

Last year Ahmad asked what is the correct order when calling phy_init
and phy_power_on. Since then, I didn't see the situation improve much
and I am once again toying around with usb phy driver.

The following two patches were in my tree for a year... Last year i
previously tried to change the call order in the dwc2 driver but this
requires the relevent phy to be also compatible with the "new" ordering.
The stm32-usbphyc driver wasn't compatible, I am not sure if that is
still is the case.

For now simply add documentation, hopefully correct, but I am not an
expert on actual phy sementics or usage in the kernel. And add warning
when the order is not what's expected.

Best,

---
v2: Updated the documentation syntax for returned value
v3: Put the warning msg inside the locked section as suggested by Ahmad

Jules Maselbas (3):
  phy: core: Add documentation of phy operation order
  phy: core: Update documentation syntax
  phy: core: Warn when phy_power_on is called before phy_init

 drivers/phy/phy-core.c | 44 +++++++++++++++++++++++++++++++++++++++---
 1 file changed, 41 insertions(+), 3 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-04-20  9:15 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-07 10:21 [PATCH RESEND v3 0/3] Cleanup the call ordering of phy_init and phy_power_on Jules Maselbas
2022-04-07 10:21 ` Jules Maselbas
2022-04-07 10:21 ` [PATCH RESEND v3 1/3] phy: core: Add documentation of phy operation order Jules Maselbas
2022-04-07 10:21   ` Jules Maselbas
2022-04-07 10:21 ` [PATCH RESEND v3 2/3] phy: core: Update documentation syntax Jules Maselbas
2022-04-07 10:21   ` Jules Maselbas
2022-04-13  6:02   ` Vinod Koul
2022-04-13  6:02     ` Vinod Koul
2022-04-13  9:53     ` Jules Maselbas
2022-04-13  9:53       ` Jules Maselbas
2022-04-13  9:59       ` Vinod Koul
2022-04-13  9:59         ` Vinod Koul
2022-04-13 11:13         ` Jules Maselbas
2022-04-13 11:13           ` Jules Maselbas
2022-04-07 10:21 ` [PATCH RESEND v3 3/3] phy: core: Warn when phy_power_on is called before phy_init Jules Maselbas
2022-04-07 10:21   ` Jules Maselbas
2022-04-20  9:15 ` [PATCH RESEND v3 0/3] Cleanup the call ordering of phy_init and phy_power_on Vinod Koul
2022-04-20  9:15   ` Vinod Koul

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.