aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2021-08-13 23:28:44 +0200
committerChristian Lamparter <chunkeey@gmail.com>2021-10-24 11:01:35 +0200
commit88151b8303f29f18e8b037076628fd82eda0978a (patch)
treee57b634165cf0358b6b0babb40c7fe7f94e12f88 /target
parent23778f067a5aa8d2fa7e15244521774bf849ae6b (diff)
downloadupstream-88151b8303f29f18e8b037076628fd82eda0978a.tar.gz
upstream-88151b8303f29f18e8b037076628fd82eda0978a.tar.bz2
upstream-88151b8303f29f18e8b037076628fd82eda0978a.zip
ipq40xx: ar40xx: reset port status register
This resolves incosnsitencies of the configured RX / TX flow control modes between different boards or bootloaders. Signed-off-by: David Bauer <mail@david-bauer.net> (cherry picked from commit 4d81f087715524994448ecaefd3ca87c8ba7e0a3)
Diffstat (limited to 'target')
-rw-r--r--target/linux/ipq40xx/files/drivers/net/phy/ar40xx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/linux/ipq40xx/files/drivers/net/phy/ar40xx.c b/target/linux/ipq40xx/files/drivers/net/phy/ar40xx.c
index c35ba2799f..ca7f0ca350 100644
--- a/target/linux/ipq40xx/files/drivers/net/phy/ar40xx.c
+++ b/target/linux/ipq40xx/files/drivers/net/phy/ar40xx.c
@@ -1198,8 +1198,7 @@ ar40xx_init_port(struct ar40xx_priv *priv, int port)
{
u32 t;
- ar40xx_rmw(priv, AR40XX_REG_PORT_STATUS(port),
- AR40XX_PORT_AUTO_LINK_EN, 0);
+ ar40xx_write(priv, AR40XX_REG_PORT_STATUS(port), 0);
ar40xx_write(priv, AR40XX_REG_PORT_HEADER(port), 0);