tg3 / broadcom: Refine AC131 APD support
authorMatt Carlson <mcarlson@broadcom.com>
Mon, 2 Nov 2009 14:31:11 +0000 (14:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Nov 2009 07:39:12 +0000 (23:39 -0800)
commitcdd4e09d692bd4f3457b3789279005e112b7696d
tree25a7619a2cd9dc2ab787fd768bda96c8f507243d
parent63a14ce449dd6d647de2725809159eb072b2c44f
tg3 / broadcom: Refine AC131 APD support

Auto power-down (APD) support is a power-saving feature.  It should be
selectively enabled since it might expose MAC bugs.  This patch changes
the code to enable APD only if the PHY_BRCM_AUTO_PWRDWN_ENABLE flag is
set.  The tg3 driver was changed to set this bit.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/broadcom.c
drivers/net/tg3.c