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)
commit400dfbaa8d444a29056b051a3d7082dc611e3b12
tree369d29f3656fe30ecf203a92658258ec7a404802
parent9e2ecbeb250dee67f4bd06a18637c120b48a4865
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
This page took 0.028198 seconds and 5 git commands to generate.