]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: nxp-c45-tja11xx: enable MDIO write access to the master/slave registers
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 14 Jun 2021 13:44:41 +0000 (16:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Jun 2021 20:12:59 +0000 (13:12 -0700)
commit1540b4c3166054fc2219ffc4631545ae6cf496f7
treeb16fe80950a7950510cf01867ae835a8a50406ce
parent0a72560f5d610a865c474dcf46c87b4c7e68aa9c
net: phy: nxp-c45-tja11xx: enable MDIO write access to the master/slave registers

The SJA1110 switch integrates TJA1103 PHYs, but in SJA1110 switch rev B
silicon, there is a bug in that the registers for selecting the 100base-T1
autoneg master/slave roles are not writable.

To enable write access to the master/slave registers, these additional
PHY writes are necessary during initialization.

The issue has been corrected in later SJA1110 silicon versions and is
not present in the standalone PHY variants, but applying the workaround
unconditionally in the driver should not do any harm.

Suggested-by: Radu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/nxp-c45-tja11xx.c