aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq40xx/files/drivers
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2021-08-13 23:28:44 +0200
committerDavid Bauer <mail@david-bauer.net>2021-08-14 14:48:07 +0200
commit4d81f087715524994448ecaefd3ca87c8ba7e0a3 (patch)
tree8230f79d89b54e4bce3e0b65fc13e326cbeba564 /target/linux/ipq40xx/files/drivers
parent685c790e9f0f44f3962276dbaddb784cce16423d (diff)
downloadupstream-4d81f087715524994448ecaefd3ca87c8ba7e0a3.tar.gz
upstream-4d81f087715524994448ecaefd3ca87c8ba7e0a3.tar.bz2
upstream-4d81f087715524994448ecaefd3ca87c8ba7e0a3.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>
Diffstat (limited to 'target/linux/ipq40xx/files/drivers')
-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 a33bc0de2c..f7ce42b9ff 100644
--- a/target/linux/ipq40xx/files/drivers/net/phy/ar40xx.c
+++ b/target/linux/ipq40xx/files/drivers/net/phy/ar40xx.c
@@ -1199,8 +1199,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);