From e54bfe9d7e5823f8b460e8de371f695ada41a0c1 Mon Sep 17 00:00:00 2001 From: Shaohui Xie Date: Tue, 13 Jan 2015 10:30:31 +0800 Subject: 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 Signed-off-by: David S. Miller --- drivers/net/ethernet/freescale/xgmac_mdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/net/ethernet/freescale/xgmac_mdio.c') diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c b/drivers/net/ethernet/freescale/xgmac_mdio.c index e0fc3d1115ea..a492e5006756 100644 --- a/drivers/net/ethernet/freescale/xgmac_mdio.c +++ b/drivers/net/ethernet/freescale/xgmac_mdio.c @@ -156,7 +156,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); -- cgit v1.2.3-59-g8ed1b