[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1421116231-16100-1-git-send-email-shh.xie@gmail.com>
Date: Tue, 13 Jan 2015 10:30:31 +0800
From: <shh.xie@...il.com>
To: <netdev@...r.kernel.org>, <davem@...emloft.net>
CC: Shaohui Xie <Shaohui.Xie@...escale.com>
Subject: [PATCH] net/fsl: fix a bug in xgmac_mdio
From: Shaohui Xie <Shaohui.Xie@...escale.com>
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@...escale.com>
---
drivers/net/ethernet/freescale/xgmac_mdio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c b/drivers/net/ethernet/freescale/xgmac_mdio.c
index e0fc3d1..a492e50 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);
--
1.8.4.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists