OSDN Git Service

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)
commit1d3ca681b9d9575ccf696ebc2840a1ebb1fd4074
treeefe5bad889fccc2c8044619e568407517721017d
parent73d527aef68f7644e59f22ce7f9ac75e7b533aea
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