diff options
author | Quan Nguyen <qnguyen@apm.com> | 2017-03-15 13:27:15 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-15 21:52:51 -0700 |
commit | 4b72436dc3dd2457056b22d6f147777368c869fa (patch) | |
tree | bf92fd85f776e6e6a098be0ea8b84ae4b1cde5d2 /drivers/net/phy | |
parent | 02cb24e9d97e3fca1ed61dc5661f128fb5c9300f (diff) | |
download | op-kernel-dev-4b72436dc3dd2457056b22d6f147777368c869fa.zip op-kernel-dev-4b72436dc3dd2457056b22d6f147777368c869fa.tar.gz |
drivers: net: phy: xgene: Fix mdio write
This patches fixes a typo in the argument to xgene_enet_wr_mdio_csr().
Signed-off-by: Quan Nguyen <qnguyen@apm.com>
Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/mdio-xgene.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/mdio-xgene.c b/drivers/net/phy/mdio-xgene.c index f095051..3e2ac07 100644 --- a/drivers/net/phy/mdio-xgene.c +++ b/drivers/net/phy/mdio-xgene.c @@ -229,7 +229,7 @@ static int xgene_xfi_mdio_write(struct mii_bus *bus, int phy_id, val = SET_VAL(HSTPHYADX, phy_id) | SET_VAL(HSTREGADX, reg) | SET_VAL(HSTMIIMWRDAT, data); - xgene_enet_wr_mdio_csr(addr, MIIM_FIELD_ADDR, data); + xgene_enet_wr_mdio_csr(addr, MIIM_FIELD_ADDR, val); val = HSTLDCMD | SET_VAL(HSTMIIMCMD, MIIM_CMD_LEGACY_WRITE); xgene_enet_wr_mdio_csr(addr, MIIM_COMMAND_ADDR, val); |