Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e54bfe9d authored by Shaohui Xie's avatar Shaohui Xie Committed by David S. Miller
Browse files

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: default avatarShaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0fe6de49
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -156,7 +156,7 @@ static int xgmac_mdio_read(struct mii_bus *bus, int phy_id, int regnum)
		mdio_stat |= MDIO_STAT_ENC;
		mdio_stat |= MDIO_STAT_ENC;
	} else {
	} else {
		dev_addr = regnum & 0x1f;
		dev_addr = regnum & 0x1f;
		mdio_stat = ~MDIO_STAT_ENC;
		mdio_stat &= ~MDIO_STAT_ENC;
	}
	}


	out_be32(&regs->mdio_stat, mdio_stat);
	out_be32(&regs->mdio_stat, mdio_stat);