tg3: Reset the phy to allow modified EEE settings to take effect
authorNithin Sujir <nsujir@broadcom.com>
Tue, 9 Apr 2013 08:48:09 +0000 (08:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Apr 2013 19:14:15 +0000 (15:14 -0400)
commited1ff5c397b58b81a887924e7e650f2187b7f808
treebaf996f610b375100a2f241a9f35f1d028adf59d
parentfdad8de4676b986adab540d58d828110f506b995
tg3: Reset the phy to allow modified EEE settings to take effect

When LFA is enabled, we don't reset the phy. But EEE settings changes
don't take effect until the phy is reset. Add a phy reset when we detect
a changed EEE setting.

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