Re: [PATCH RFT 1/2] phylib: add device reset GPIO support
From: Sergei Shtylyov <hidden>
Date: 2016-05-13 20:56:20
Also in:
linux-devicetree, lkml
From: Sergei Shtylyov <hidden>
Date: 2016-05-13 20:56:20
Also in:
linux-devicetree, lkml
On 05/13/2016 11:44 PM, Andrew Lunn wrote:
quoted
quoted
Another issue is that on some boards we have one reset line tied to multiple PHYs.How do we prevent multiple resets being taking place when each of the PHYs are registered?My patch just doesn't address this case -- it's about the individual resets only.This actually needs to be addresses a layer above. What you have is a bus reset, not a device reset.
No.
There's simply no such thing as a bus reset for the xMII/MDIO busses,
there's simply no reset signaling on them. Every device has its own reset
signal and its own timing requirements.
So the gpio line is associated to the mdio bus, not a PHY.
No.
Either your MDIO driver needs to handle the gpio line, or in __mdio_register(),
__mdiobus_register(), you mean?
before it starts looking at the children.
It's basically the same thing.
The MDIO bus reset is a misconception.
Andrew
MBR, Sergei