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

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

Merge "mhi: core: do not toggle PCIe low power mode in sleeping context"

parents 5f43935f 63221569
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2603,6 +2603,7 @@ int mhi_get_remote_time_sync(struct mhi_device *mhi_dev,
		ret = -EIO;
		goto error_invalid_state;
	}
	read_unlock_bh(&mhi_cntrl->pm_lock);

	/* disable link level low power modes */
	ret = mhi_cntrl->lpm_disable(mhi_cntrl, mhi_cntrl->priv_data);
@@ -2625,6 +2626,7 @@ int mhi_get_remote_time_sync(struct mhi_device *mhi_dev,

	mhi_cntrl->lpm_enable(mhi_cntrl, mhi_cntrl->priv_data);

	read_lock_bh(&mhi_cntrl->pm_lock);
error_invalid_state:
	mhi_cntrl->wake_put(mhi_cntrl, false);
	read_unlock_bh(&mhi_cntrl->pm_lock);