i2c: qcom-geni: Use pm_runtime_force_{suspend,resume} helpers
authorPraveen Talari <praveen.talari@oss.qualcomm.com>
Wed, 20 May 2026 07:14:29 +0000 (12:44 +0530)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 9 Jun 2026 18:17:12 +0000 (20:17 +0200)
commit10765ff932e668be7ae7835b5438b3587e16554a
tree6de2b4336df42156519e31857cb7914de7dadcc0
parent233644f6d4da72ca5afb7d9b1478a170d3aacbf7
i2c: qcom-geni: Use pm_runtime_force_{suspend,resume} helpers

The driver carries custom system suspend/resume handling that manually
tracks a suspended state and conditionally calls
geni_i2c_runtime_suspend()
from the noirq suspend path, then adjusts runtime PM state by hand. This
duplicates PM core behavior and adds unnecessary complexity.

Drop the manual state tracking and switch to pm_runtime_force_suspend()
and pm_runtime_force_resume() for system sleep. These helpers already
perform the required checks, call the runtime PM callbacks when needed,
and keep runtime PM state transitions consistent.

Reviewed-by: Mukesh Kumar Savaliya <mukesh.savaliya@oss.qualcomm.com>
Signed-off-by: Praveen Talari <praveen.talari@oss.qualcomm.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260520-use_pm_runtime_apis-v1-1-6a5238fc6cb6@oss.qualcomm.com
drivers/i2c/busses/i2c-qcom-geni.c