tg3: Simplify tg3_phy_eee_config_ok() by reusing tg3_eee_pull_config()
authorNithin Sujir <nsujir@broadcom.com>
Sat, 18 May 2013 06:26:54 +0000 (06:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 May 2013 07:13:47 +0000 (00:13 -0700)
commit5b6c273ad6c3886f30c7c5df7009e489043c59f3
treee314b78c5f301971d80422ad03a4f7c2d398aeae
parent400dfbaa8d444a29056b051a3d7082dc611e3b12
tg3: Simplify tg3_phy_eee_config_ok() by reusing tg3_eee_pull_config()

eee_config_ok() was checking only for mismatch in advertised settings.
This patch expands the scope of eee_config_ok() to check for mismatch in
the other eee settings. On mismatch we will require a call to
tg3_setup_eee() to push the configured settings to the hardware.

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