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

Commit f2bfcb7b authored by Hemant Kumar's avatar Hemant Kumar Committed by Gerrit - the friendly Code Review server
Browse files

mhi: core: Log dev wake count in mhi device get/put



This helps to debug the timeout between asserting
wake doorbell and getting M0 state change event.

Change-Id: Ie60d88cb2a22510dd794e0a6dffde6dfe54fb544
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 28ca6084
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1537,6 +1537,7 @@ void mhi_device_get(struct mhi_device *mhi_dev, int vote)
	if (vote & MHI_VOTE_DEVICE) {
		read_lock_bh(&mhi_cntrl->pm_lock);
		mhi_cntrl->wake_get(mhi_cntrl, true);
		MHI_LOG("dev_wake %d\n", atomic_read(&mhi_cntrl->dev_wake));
		read_unlock_bh(&mhi_cntrl->pm_lock);
		atomic_inc(&mhi_dev->dev_vote);
	}
@@ -1590,6 +1591,7 @@ void mhi_device_put(struct mhi_device *mhi_dev, int vote)
			mhi_trigger_resume(mhi_cntrl);

		mhi_cntrl->wake_put(mhi_cntrl, false);
		MHI_LOG("dev_wake %d\n", atomic_read(&mhi_cntrl->dev_wake));
		read_unlock_bh(&mhi_cntrl->pm_lock);
	}