]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
pcie: host: tegra: add condition to disable scx
authorVidya Sagar <vidyas@nvidia.com>
Wed, 6 Jan 2016 04:43:10 +0000 (10:13 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Wed, 6 Jan 2016 21:22:20 +0000 (13:22 -0800)
disable scx states only if there are any devices enumerated

Bug 200163746

Change-Id: I20354383ac2e6b4976d305962f5066d8f7b5bcae
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/929311
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/pci/host/pci-tegra.c

index 26ac2931fb514f718c157339fbd776b55b497410..503edfec2324b64f1fe8b390a8176f4500dfd4fc 100644 (file)
@@ -5,7 +5,7 @@
  * Author: Mike Rapoport <mike@compulab.co.il>
  *
  * Based on NVIDIA PCIe driver
- * Copyright (c) 2008-2015, NVIDIA Corporation. All rights reserved.
+ * Copyright (c) 2008-2016, NVIDIA Corporation. All rights reserved.
  *
  * Bits taken from arch/arm/mach-dove/pcie.c
  *
@@ -3970,7 +3970,8 @@ static int tegra_pcie_probe_complete(struct tegra_pcie *pcie)
         * disable_scx_states(), that will disabled SCx states whenever PCIe
         * device is connected.
         */
-       disable_scx_states();
+       if (pcie->num_ports)
+               disable_scx_states();
 
        if (IS_ENABLED(CONFIG_DEBUG_FS))
                if (pcie->num_ports) {