net: phy: added the LAN937x phy support
authorArun Ramadoss <arun.ramadoss@microchip.com>
Fri, 4 Mar 2022 09:44:00 +0000 (15:14 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Mar 2022 12:45:19 +0000 (12:45 +0000)
commit680baca546f23709548c054393536e10a4e38a25
tree6aa121d9ab197dac936e64c3601f95b222d54451
parent8637034bc63f38d631a94c1b8f655291ca81ad3e
net: phy: added the LAN937x phy support

LAN937x T1 switch is based on LAN87xx Phy, so reusing the init script of
the LAN87xx. There is a workaround in accessing the DSP bank register
for LAN937x Phy. Whenever there is a bank switch to DSP registers, then
we need a one dummy read access before proceeding to the actual register
access.

Signed-off-by: Prasanna Vengateshan <prasanna.vengateshan@microchip.com>
Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/microchip_t1.c