BACKPORT: r8169: enable internal ASPM and clock request settings
authorhayeswang <hayeswang@realtek.com>
Thu, 1 Nov 2012 16:46:28 +0000 (16:46 +0000)
committerGerrit <chrome-bot@google.com>
Tue, 6 Nov 2012 21:22:27 +0000 (13:22 -0800)
commitd6a3750eef2e494e2f78160c5f8b37a7d810bff7
treeae0eafa045a9d36514305b6c171c497eef56a6a5
parent9e1e76d37b4348ac9352bd78c14a4da1a318a1cd
BACKPORT: r8169: enable internal ASPM and clock request settings

The following chips need to enable internal settings to let ASPM
and clock request work.

RTL8111E-VL, RTL8111F, RTL8411, RTL8111G
RTL8105, RTL8402, RTL8106

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit d64ec841517a25f6d468bde9f67e5b4cffdc67c7)

Resolve conflicts as follows:

In the original CL, changes are made to many chip-specific configuration
functions, such as rtl_hw_start_8168e_2, rtl_hw_start_8402, etc. Our
source is missing some of these configuration functions and others do
not integrate cleanly. Therefore, only apply the changes to the hw_start
functions that integrate cleanly:

rtl_hw_start_8168e_2
rtl_hw_start_8105e_1

TEST=Confirm basic functionality on 8168e and 8105e cards.
BUG=chrome-os-partner:15923

Change-Id: Ib790aeb102920e127c43f74a9643e89afdffc251
Reviewed-on: https://gerrit.chromium.org/gerrit/37418
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Ready: Shawn Nematbakhsh <shawnn@google.com>
Tested-by: Shawn Nematbakhsh <shawnn@google.com>
drivers/net/ethernet/realtek/r8169.c