]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
pcie: host: tegra: swap msleep with usleep_range
authorVidya Sagar <vidyas@nvidia.com>
Thu, 25 Feb 2016 06:08:17 +0000 (11:38 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 25 Feb 2016 22:57:22 +0000 (14:57 -0800)
replace msleep(20) with usleep_range(19000, 21000)
as msleep is causing more than 65ms sometimes during LP0 exit

Bug 200163241

Change-Id: I18bb0cca9bb5a7849676c913bf9cb30961f7645e
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/1019784
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
drivers/pci/host/pci-tegra.c

index 6c48d600187aebb319f34a02b28242f9baca3762..094cfd6e4fb8aca2b2fca7323f45c2559c61e03a 100644 (file)
@@ -2085,7 +2085,7 @@ static void tegra_pcie_check_ports(struct tegra_pcie *pcie)
         * set AUX_TX_RDET_STATUS bit. This would bring link up checking
         * time from its current value (around 200ms) to flat 20ms
         */
-       msleep(20);
+       usleep_range(19000, 21000);
        list_for_each_entry_safe(port, tmp, &pcie->ports, list) {
                if (tegra_pcie_port_check_link(port)) {
                        port->status = 1;