]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite9e2ee518a9fdc3e35c3a55e4f957b37a993cf6e
treee314b78c5f301971d80422ad03a4f7c2d398aeae
parentba69cfeb4471524ad40c3dc66821e8ba631ccad5
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