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

Commit 103f91c2 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mhi: controller: Enable L1 when mhi is not active"

parents 99bbfb58 0e9a118f
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -67,12 +67,15 @@ void mhi_reg_write_work(struct work_struct *w)
	if (!info->valid)
		return;

	if (mhi_is_active(mhi_cntrl->mhi_dev) && msm_pcie_prevent_l1(pci_dev))
	if (!mhi_is_active(mhi_cntrl->mhi_dev))
		return;

	if (msm_pcie_prevent_l1(pci_dev))
		return;

	while (info->valid) {
		if (!mhi_is_active(mhi_cntrl->mhi_dev))
			return;
			break;

		writel_relaxed(info->val, info->reg_addr);
		info->valid = false;