diff options
author | Shaohui Xie <Shaohui.Xie@freescale.com> | 2015-01-13 02:30:31 (GMT) |
---|---|---|
committer | Olivia Yin-R63875 <r63875@freescale.com> | 2015-04-28 06:28:05 (GMT) |
commit | 330cfba1fe40e47866580427a7e9094e87f27f46 (patch) | |
tree | 6e21c42aeb42008ffc3aa3ebcea852ea439bf833 | |
parent | 5ff3a8aa9d278182ce824b2b4bec3236ca7f0de2 (diff) | |
download | linux-fsl-qoriq-330cfba1fe40e47866580427a7e9094e87f27f46.tar.xz |
net/fsl: fix a bug in xgmac_mdio
There is a bug in xgmac_mdio_read when clear the bit MDIO_STAT_ENC,
which '&' is missed in 'mdio_stat &= ~MDIO_STAT_ENC'.
Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/freescale/xgmac_mdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c b/drivers/net/ethernet/freescale/xgmac_mdio.c index 4592669..5eef8ce 100644 --- a/drivers/net/ethernet/freescale/xgmac_mdio.c +++ b/drivers/net/ethernet/freescale/xgmac_mdio.c @@ -161,7 +161,7 @@ static int xgmac_mdio_read(struct mii_bus *bus, int phy_id, int regnum) mdio_stat |= MDIO_STAT_ENC; } else { dev_addr = regnum & 0x1f; - mdio_stat = ~MDIO_STAT_ENC; + mdio_stat &= ~MDIO_STAT_ENC; } out_be32(®s->mdio_stat, mdio_stat); |