]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
pcie: host: tegra: increase pcie linkup time
authorVidya Sagar <vidyas@nvidia.com>
Tue, 9 Feb 2016 11:30:13 +0000 (17:00 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 11 Feb 2016 20:22:09 +0000 (12:22 -0800)
increases pcie link up time from its current 100ms
value to 350ms value because of the specific USB3.0 controller
card based on VIA chipset takes around 350ms time to linkup
with rootport. To be at par with x86 machine interms of
device enumeration, this change is required.
Also, this changes comes into picture only if there is a device
found (i.e. only if TX_RDET_STATUS is already set)

Bug 200171635

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

index 385c9ddf8bee9476d65704c5625b8aaa8d8b618c..6c48d600187aebb319f34a02b28242f9baca3762 100644 (file)
@@ -1769,7 +1769,7 @@ static bool get_rdet_status(u32 index)
  * can result in the increase of the bootup time as there are big timeout
  * loops.
  */
-#define TEGRA_PCIE_LINKUP_TIMEOUT      100     /* up to 100 ms */
+#define TEGRA_PCIE_LINKUP_TIMEOUT      350     /* up to 350 ms */
 static bool tegra_pcie_port_check_link(struct tegra_pcie_port *port)
 {
        unsigned int retries = 3;