]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: 5715 does not link up when autoneg off
authorNithin Sujir <nsujir@broadcom.com>
Tue, 12 Mar 2013 15:32:48 +0000 (15:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Mar 2013 13:54:05 +0000 (09:54 -0400)
commitf5baea0418116dc9aecb0e3c0e7ee15ce14865ce
tree38362391265043629b5bc626ec6ceb08dbea923e
parent27a0ad85b366186a244d6003bc0ccbad1d44584f
tg3: 5715 does not link up when autoneg off

Commit 98ff5ae695a1d4ca0bff220c20b5b65a5a5c7d8a ("tg3: Remove
SPEED_UNKNOWN checks") cleaned up the autoneg advertisement by
removing some dead code. One effect of this change was that the
advertisement register would not be updated if autoneg is turned off.

This exposed a bug on the 5715 device w.r.t linking. The 5715 defaults
to advertise only 10Mb Full duplex. But with autoneg disabled, it needs
the configured speed enabled in the advertisement register to link up.

This patch adds the work around to advertise all speeds on the 5715 when
autoneg is disabled.

Reported-by: Marcin Miotk <marcinmiotk81@gmail.com>
Reviewed-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c