Thread (11 messages) 11 messages, 3 authors, 2021-12-16

Re: [PATCH net-next 3/3] net: fec: reset phy on resume after power-up

flat view

From: Andrew Lunn <andrew@lunn.ch>
Date: 2021-12-16 11:28:31
Also in: lkml

On Thu, Dec 16, 2021 at 12:24:33PM +0100, Francesco Dolcini wrote:
On Thu, Dec 16, 2021 at 11:24:24AM +0100, Andrew Lunn wrote:
quoted
I think you need to move the regulator into phylib, so the PHY driver
can do the right thing. It is really the only entity which knows what
is the correct thing to do.
Do you believe that the right place is the phylib and not the phy driver?
Is this generic enough?
It is split. phylib can do the lookup in DT, get the regulator and
provide a helper to enable/disable it. So very similar to the reset.

The phy driver would then use the helpers. It probably needs to look
into the phydev structure to see what is actually available, is there
a reset, a regulator etc, and then decide what is best to do given the
available resources.

	  Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help