summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorBibek Basu <bbasu@nvidia.com>2014-04-29 12:24:01 +0530
committerMandar Padmawar <mpadmawar@nvidia.com>2014-05-02 04:32:55 -0700
commitce3c69f7bff11eca5cf7b01caed2e1732eef945d (patch)
tree5667df8d9603ada70abf22d4156f5d3780c1aa4a /drivers/pci
parent7dc56d1f8c49b94eb0382e390b3da0d255cf4adb (diff)
PCIE: tegra: disable L0s for T12x
Disable for Tegra12 L0s feature as its broken. Bug 1483608 Change-Id: I84cc97d7a3e3f6527366a2edb3238d103ca5d167 Signed-off-by: Bibek Basu <bbasu@nvidia.com> Reviewed-on: http://git-master/r/391647 (cherry picked from commit 80f4ce0958393616d98f759f7fa190f761c6a711) Reviewed-on: http://git-master/r/402824 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/host/pci-tegra.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c
index ca49e452bbbb..3908f69c046d 100644
--- a/drivers/pci/host/pci-tegra.c
+++ b/drivers/pci/host/pci-tegra.c
@@ -1799,6 +1799,10 @@ static void tegra_pcie_enable_aspm(void)
pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &val);
val |= aspm >> 10;
pcie_capability_write_word(pdev, PCI_EXP_LNKCTL, val);
+#if defined CONFIG_ARCH_TEGRA_12x_SOC
+ pcie_capability_clear_word(pdev, PCI_EXP_LNKCTL,
+ PCI_EXP_LNKCTL_ASPM_L0S);
+#endif
}
}