summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorJay Agarwal <jagarwal@nvidia.com>2014-03-14 14:33:47 +0530
committerJay Agarwal <jagarwal@nvidia.com>2014-03-21 03:08:10 -0700
commita27dbc5b5649c32be28a1337e9501bf552771bc8 (patch)
tree4ff1126c6eb2f0712d9a88afee6063b22cc29ab3 /drivers/pci
parentc4bb591785306f4ab14637d8419e60028f21bfe0 (diff)
pcie: host: tegra: Enable ASPM based on cmd line
Enable ASPM in host driver only when pci_aspm=off is not set. Bug 1459770 Change-Id: I1fc6bab71df0297e1c6775837f023aed3396eb8b Signed-off-by: Jay Agarwal <jagarwal@nvidia.com> Reviewed-on: http://git-master/r/381953 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Vijayarahavan Rajendran <vrajendran@nvidia.com> Reviewed-by: Venu Byravarasu <vbyravarasu@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 84c3d6af3061..d80bae719aee 100644
--- a/drivers/pci/host/pci-tegra.c
+++ b/drivers/pci/host/pci-tegra.c
@@ -1778,6 +1778,10 @@ static void tegra_pcie_enable_aspm(void)
u16 val = 0, aspm = 0;
PR_FUNC_LINE;
+ if (!pcie_aspm_support_enabled()) {
+ pr_info("PCIE: ASPM not enabled\n");
+ return;
+ }
for_each_pci_dev(pdev) {
/* Find ASPM capability */
pcie_capability_read_word(pdev, PCI_EXP_LNKCAP, &aspm);