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

Commit f9ae3707 authored by Yan He's avatar Yan He
Browse files

msm: ep_pcie: fix the bug of power status



Fix the bug of the power status of PCIe core and update the power
status as soon as power is turned on.

Change-Id: Ib5b550c78a630d36049296daf1291065a1a44cd5
Signed-off-by: default avatarYan He <yanhe@codeaurora.org>
parent b1a6018e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -969,6 +969,8 @@ int ep_pcie_core_enable_endpoint(enum ep_pcie_options opt)
				dev->rev);
			goto pipe_clk_fail;
		}

		dev->power_on = true;
	}

	if (!(opt & EP_PCIE_OPT_ENUM))
@@ -1121,11 +1123,11 @@ int ep_pcie_core_enable_endpoint(enum ep_pcie_options opt)
		}
	}

	dev->power_on = true;
	dev->suspending = false;
	goto out;

link_fail:
	dev->power_on = false;
	if (!ep_pcie_debug_keep_resource)
		ep_pcie_pipe_clk_deinit(dev);
pipe_clk_fail: