CHROMIUM: staging:rts_pstor: Enable ASPM L0s & L1 by default.
authorTodd Broch <tbroch@chromium.org>
Tue, 16 Oct 2012 16:41:53 +0000 (09:41 -0700)
committerGerrit <chrome-bot@google.com>
Tue, 16 Oct 2012 23:17:49 +0000 (16:17 -0700)
Enable ASPM's L0s and L1 to save power when device is idle.

BUG=chrome-os-partner:15258
TEST=manual,
Boot device &
  lspci -vvv | egrep -i "^[0-9]|lnkctl"

Look for Realtek sdcard reader and that the link control says:
  LnkCtl: ASPM L0s L1 Enabled; ...

Change-Id: Ide6fbdeff0a3212639dc2ba85c7b5c43ba3574fe
Signed-off-by: Todd Broch <tbroch@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/35701
Reviewed-by: Sameer Nanda <snanda@chromium.org>
drivers/staging/rts_pstor/rtsx.c

index 1dccd93..78e7eb7 100644 (file)
@@ -58,7 +58,7 @@ static int auto_delink_en;
 module_param(auto_delink_en, int, S_IRUGO | S_IWUSR);
 MODULE_PARM_DESC(auto_delink_en, "enable auto delink");
 
-static unsigned char aspm_l0s_l1_en;
+static unsigned char aspm_l0s_l1_en = 3;
 module_param(aspm_l0s_l1_en, byte, S_IRUGO | S_IWUSR);
 MODULE_PARM_DESC(aspm_l0s_l1_en, "enable device aspm");