]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
tg3: Prevent spurious tx timeout by setting carrier off before tx disable.
authorNithin Nayak Sujir <nsujir@broadcom.com>
Wed, 14 Nov 2012 14:44:27 +0000 (14:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Nov 2012 03:04:28 +0000 (22:04 -0500)
commitf4a46d1f46a8fece34edd2023e054072b02e110d
treeccb6ac29a6f01080d5efd9de482264f520c2af62
parent3d567e0e291c4ffd041cf653aea3c38a1d5f4620
tg3: Prevent spurious tx timeout by setting carrier off before tx disable.

The watchdog will not trigger when the carrier is off when reconfiguring
the device.  Because carrier state is now off during reset, we need to
introduce a link_up flag to keep track of link state during PHY setup.

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
drivers/net/ethernet/broadcom/tg3.h