ipq40xx: ar40xx: reset port status register
authorDavid Bauer <mail@david-bauer.net>
Fri, 13 Aug 2021 21:28:44 +0000 (23:28 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sat, 14 Aug 2021 12:48:07 +0000 (14:48 +0200)
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>
target/linux/ipq40xx/files/drivers/net/phy/ar40xx.c

index a33bc0de2c161f32b25ef828d6fea10acc4770fb..f7ce42b9ff0ae12cf1bccf2952dfc3ecbb5cbd17 100644 (file)
@@ -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);