r8169: enable ALDPS for power saving
commite0c075577965d1c01b30038d38bf637b027a1df3
authorhayeswang <hayeswang@realtek.com>
Tue, 23 Oct 2012 20:24:03 +0000 (23 20:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Oct 2012 06:14:51 +0000 (26 02:14 -0400)
tree52951f9817447002a832e770ef7b3a252e0716dc
parente4e541a84863b6a41f2427f59cc9156c644491a8
r8169: enable ALDPS for power saving

Enable ALDPS function to save power when link down. Note that the
feature should be set after the other PHY settings. And the firmware
is necessary. Don't enable it without loading the firmware.

None of the firmware-free chipsets support ALDPS. Neither do the
RTL8168d/8111d.

For 8136 series, make sure the ALDPS is disabled before loading the
firmware. For 8168 series, the ALDPS would be disabled automatically
when loading firmware. You must not disable it directly.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c