]> 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)
commitb80be526c98e38dc856b329bd324e8d4fe979111
tree11af575a68735d3321f21e517589a1e2ec74ebac
parentae7689ef582d857f7a207c68a07ae1bd7f31a086
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: a173662980cd ("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