]> git.baikalelectronics.ru Git - kernel.git/commit
net/fsl: treat fsl,erratum-a011043
authorMadalin Bucur <madalin.bucur@oss.nxp.com>
Wed, 22 Jan 2020 13:20:29 +0000 (15:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jan 2020 20:17:13 +0000 (21:17 +0100)
commitfb4693e561204812487fb4fe88aa1aeb33a5d802
treeefe5bad889fccc2c8044619e568407517721017d
parent5dc051e4a895a915383aeda65e59ff9f1ef3b1be
net/fsl: treat fsl,erratum-a011043

When fsl,erratum-a011043 is set, adjust for erratum A011043:
MDIO reads to internal PCS registers may result in having
the MDIO_CFG[MDIO_RD_ER] bit set, even when there is no
error and read data (MDIO_DATA[MDIO_DATA]) is correct.
Software may get false read error when reading internal
PCS registers through MDIO. As a workaround, all internal
MDIO accesses should ignore the MDIO_CFG[MDIO_RD_ER] bit.

Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/xgmac_mdio.c