]> git.baikalelectronics.ru Git - kernel.git/commit
net/fsl: xgmac_mdio: Add workaround for erratum A-009885
authorTobias Waldekranz <tobias@waldekranz.com>
Tue, 18 Jan 2022 21:50:50 +0000 (22:50 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 19 Jan 2022 16:14:17 +0000 (08:14 -0800)
commite2bd76659ff3ba3738eef41e7afc66180d675c64
tree11af575a68735d3321f21e517589a1e2ec74ebac
parentc2a98760471b8af4fb6990a50dcb2a796f7c5665
net/fsl: xgmac_mdio: Add workaround for erratum A-009885

Once an MDIO read transaction is initiated, we must read back the data
register within 16 MDC cycles after the transaction completes. Outside
of this window, reads may return corrupt data.

Therefore, disable local interrupts in the critical section, to
maximize the probability that we can satisfy this requirement.

Fixes: 736e6ae24120 ("powerpc/mpc85xx: Create dts components for the FSL QorIQ DPAA FMan")
Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/xgmac_mdio.c