summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa
diff options
context:
space:
mode:
authorPawel Dembicki <paweldembicki@gmail.com>2024-08-09 21:38:03 +0200
committerDavid S. Miller <davem@davemloft.net>2024-08-12 12:46:55 +0200
commit5b9eebc2c7a5f0cc7950d918c1e8a4ad4bed5010 (patch)
treeb422cf6d85ef32c02da4533de0d2e9b9d95c78d1 /drivers/net/dsa
parentnet: dsa: vsc73xx: fix port MAC configuration in full duplex mode (diff)
downloadlinux-5b9eebc2c7a5f0cc7950d918c1e8a4ad4bed5010.tar.xz
linux-5b9eebc2c7a5f0cc7950d918c1e8a4ad4bed5010.zip
net: dsa: vsc73xx: pass value in phy_write operation
In the 'vsc73xx_phy_write' function, the register value is missing, and the phy write operation always sends zeros. This commit passes the value variable into the proper register. Fixes: 05bd97fc559d ("net: dsa: Add Vitesse VSC73xx DSA router driver") Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa')
-rw-r--r--drivers/net/dsa/vitesse-vsc73xx-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/vitesse-vsc73xx-core.c b/drivers/net/dsa/vitesse-vsc73xx-core.c
index f548ed4cb23f..4b300c293dec 100644
--- a/drivers/net/dsa/vitesse-vsc73xx-core.c
+++ b/drivers/net/dsa/vitesse-vsc73xx-core.c
@@ -574,7 +574,7 @@ static int vsc73xx_phy_write(struct dsa_switch *ds, int phy, int regnum,
return 0;
}
- cmd = (phy << 21) | (regnum << 16);
+ cmd = (phy << 21) | (regnum << 16) | val;
ret = vsc73xx_write(vsc, VSC73XX_BLOCK_MII, 0, 1, cmd);
if (ret)
return ret;