Skip to content

Commit

Permalink
drivers: net: phy: xgene: Fix mdio write
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Quan Nguyen authored and David S. Miller committed Mar 16, 2017
1 parent 02cb24e commit 4b72436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/phy/mdio-xgene.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4b72436

Please sign in to comment.