]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Add tg3_eee_pull_config() function
authorNithin Sujir <nsujir@broadcom.com>
Sat, 18 May 2013 06:26:53 +0000 (06:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 May 2013 07:13:47 +0000 (00:13 -0700)
commitb70145a2b1cd16ada722ad14364a5e02be73ff4e
tree369d29f3656fe30ecf203a92658258ec7a404802
parent8ff40639ff1bd630b3cac82fe3958ab48e41f807
tg3: Add tg3_eee_pull_config() function

Add tg3_eee_pull_config() to pull the settings from the hardware and
populate the eee structure.

If Link Flap Avoidance is enabled, we pull the eee settings from the hw
so as not to cause a phy reset on eee config mismatch later. This
requires moving down tg3_setup_eee() below the tg3_pull_config() to not
trample existing settings.

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