aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bus/mhi/core/pm.c
diff options
context:
space:
mode:
authorLoic Poulain <loic.poulain@linaro.org>2021-04-06 11:11:54 +0200
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2021-04-07 12:18:28 +0530
commit4547a749be997eb12ea7edcf361ec2a5329f7aec (patch)
tree1220e0cd9bdf2b6549a62f38f7c4ac6d744f0c59 /drivers/bus/mhi/core/pm.c
parentbus: mhi: core: Move to polling method to wait for MHI ready (diff)
downloadlinux-dev-4547a749be997eb12ea7edcf361ec2a5329f7aec.tar.xz
linux-dev-4547a749be997eb12ea7edcf361ec2a5329f7aec.zip
bus: mhi: core: Fix MHI runtime_pm behavior
This change ensures that PM reference is always get during packet queueing and released either after queuing completion (RX) or once the buffer has been consumed (TX). This guarantees proper update for underlying MHI controller runtime status (e.g. last_busy timestamp) and prevents suspend to be triggered while TX packets are flying, or before we completed update of the RX ring. Signed-off-by: Loic Poulain <loic.poulain@linaro.org> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Link: https://lore.kernel.org/r/1617700315-12492-1-git-send-email-loic.poulain@linaro.org Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Diffstat (limited to 'drivers/bus/mhi/core/pm.c')
0 files changed, 0 insertions, 0 deletions