mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
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>
This commit is contained in:
parent
0fe6de4903
commit
e54bfe9d7e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue