Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc85485f authored by Tony Truong's avatar Tony Truong
Browse files

msm: pcie: replace msleep with usleep_range for better accuracy



Using msleep is not as accurate as usleep_range. Thus, replace
msleep with usleep_range for better accuracy.

Change-Id: Ib9a98d285e377ca5aaef72cb8ce0a018fd6a69d7
Signed-off-by: default avatarTony Truong <truong@codeaurora.org>
parent 84735e13
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2858,7 +2858,7 @@ int msm_pcie_enable(struct msm_pcie_dev_t *dev, u32 options)
	}

	if (dev->ep_latency)
		msleep(dev->ep_latency);
		usleep_range(dev->ep_latency * 1000, dev->ep_latency * 1000);

	/* de-assert PCIe reset link to bring EP out of reset */