[TG3]: Return 0 when PHY read times out, not all-ones.
Linux Kernel Mailing List <[email protected]>
| Newsgroups | gmane.linux.kernel.commits.2-4 |
|---|---|
| Message-ID | <[email protected]> |
ChangeSet 1.1552, 2005/01/06 14:53:55-08:00, [email protected] [TG3]: Return 0 when PHY read times out, not all-ones. Noticed by Peter Chubb. Signed-off-by: David S. Miller <[email protected]> tg3.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -Nru a/drivers/net/tg3.c b/drivers/net/tg3.c --- a/drivers/net/tg3.c 2005-01-15 07:06:04 -08:00 +++ b/drivers/net/tg3.c 2005-01-15 07:06:04 -08:00 @@ -485,7 +485,7 @@ udelay(80); } - *val = 0xffffffff; + *val = 0x0; frame_val = ((PHY_ADDR << MI_COM_PHY_ADDR_SHIFT) & MI_COM_PHY_ADDR_MASK);