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

Commit 0c20c736 authored by Tony Truong's avatar Tony Truong
Browse files

msm: pcie: correct PCIe clean up sequence for failed link setup



PCIe pipe clock is the last resource to be enabled. Therefore,
move PCIe pipe clock deinit to the correct place in PCIe clean
up sequence.

Change-Id: I8b20debcfae7296099d521fc0b41eddc382a3302
Signed-off-by: default avatarTony Truong <truong@codeaurora.org>
parent de724756
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3116,10 +3116,10 @@ int msm_pcie_enable(struct msm_pcie_dev_t *dev, u32 options)
link_fail:
	msm_pcie_write_reg(dev->phy, PCIE_PHY_SW_RESET, 0x1);
	msm_pcie_write_reg(dev->phy, PCIE_PHY_POWER_DOWN_CONTROL, 0);
	msm_pcie_pipe_clk_deinit(dev);
	msm_pcie_clk_deinit(dev);
clk_fail:
	msm_pcie_vreg_deinit(dev);
	msm_pcie_pipe_clk_deinit(dev);
out:
	mutex_unlock(&dev->setup_lock);