mbox series

[net-next,0/2] net: phy: bcm7xxx: request and manage GPHY clock

Message ID 20200916204415.1831417-1-f.fainelli@gmail.com
Headers show
Series net: phy: bcm7xxx: request and manage GPHY clock | expand

Message

Florian Fainelli Sept. 16, 2020, 8:44 p.m. UTC
Hi all,

This patch series is intended to address the very specific case of the
Broadcom STB internal Gigabit PHY devices that require both a dummy read
because of a hardware issue with their MDIO interface. We also need to
turn on their internal digital PHY otherwise they will not be responding
to any MDIO read or write. If they do not respond we would not be able
to identify their OUI and associate them with an appropriate PHY driver.

Florian Fainelli (2):
  net: mdio: mdio-bcm-unimac: Turn on PHY clock before dummy read
  net: phy: bcm7xxx: request and manage GPHY clock

 drivers/net/mdio/mdio-bcm-unimac.c | 11 +++++++++++
 drivers/net/phy/bcm7xxx.c          | 30 +++++++++++++++++++++++++++++-
 2 files changed, 40 insertions(+), 1 deletion(-)

Comments

Florian Fainelli Sept. 16, 2020, 10:59 p.m. UTC | #1
On 9/16/2020 1:44 PM, Florian Fainelli wrote:
> Hi all,
> 
> This patch series is intended to address the very specific case of the
> Broadcom STB internal Gigabit PHY devices that require both a dummy read
> because of a hardware issue with their MDIO interface. We also need to
> turn on their internal digital PHY otherwise they will not be responding
> to any MDIO read or write. If they do not respond we would not be able
> to identify their OUI and associate them with an appropriate PHY driver.

Scratch this, looks like we can solve this entirely and in a better way 
using the Ethernet PHY driver only and using the appropriate compatible 
string for Ethernet PHYs in the form of "ethernet-phyidAAAA.BBBB".

Please discard this for now.