Commit faba374a authored by David S. Miller's avatar David S. Miller

[TG3]: Return 0 when PHY read times out, not all-ones.

Noticed by Peter Chubb.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 09a141fe
......@@ -501,7 +501,7 @@ static int tg3_readphy(struct tg3 *tp, int reg, u32 *val)
udelay(80);
}
*val = 0xffffffff;
*val = 0x0;
frame_val = ((PHY_ADDR << MI_COM_PHY_ADDR_SHIFT) &
MI_COM_PHY_ADDR_MASK);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment