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

Commit 5598f6c4 authored by Tony Truong's avatar Tony Truong
Browse files

msm: pcie: clear Request Exit L1 bit when enabling L1 via debugfs



When enabling L1 via debugfs commands, the request exit L1
bit needs to be cleared so the link can enter L1.

Change-Id: I41b6d3b856473bebc1337eb467763a6f66914e41
Signed-off-by: default avatarTony Truong <truong@codeaurora.org>
parent eb182d17
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1455,6 +1455,10 @@ static void msm_pcie_sel_debug_testcase(struct msm_pcie_dev_t *dev,
				pci_walk_bus(bus,
					&msm_pcie_config_l1_enable, dev);

			/* enable l1 mode, clear bit 5 (REQ_NOT_ENTR_L1) */
			msm_pcie_write_mask(dev->parf +
				PCIE20_PARF_PM_CTRL, BIT(5), 0);

			msm_pcie_config_l1_enable(dev->dev, dev);
		}
		break;