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

Commit 8914723d authored by Siva Kumar Akkireddi's avatar Siva Kumar Akkireddi
Browse files

msm: ep_pcie: Do not configure MHI mmio if bios-locking is enabled



Avoid (re)configuring MHI mmio registers to initial state during
pcie core init in host reboot scenario as they would have been
already restored by the MHI driver.

Change-Id: I7cb7c03191ed25888f23cdbff71b53d63c3da633
Signed-off-by: default avatarSiva Kumar Akkireddi <sivaa@codeaurora.org>
parent 4449f03a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1385,6 +1385,11 @@ int ep_pcie_core_enable_endpoint(enum ep_pcie_options opt)
				EP_PCIE_INFO(dev,
					"PCIe V%d: link initialized by bootloader for LE PCIe endpoint; skip link training in HLOS.\n",
					dev->rev);
				/*
				 * Skip mhi mmio config for host reboot case
				 * with bios-locking enabled.
				 */
				dev->config_mmio_init = true;
				ep_pcie_core_init(dev, true);
				dev->link_status = EP_PCIE_LINK_UP;
				dev->l23_ready = false;