Skip to content
Commit 9b8e1052 authored by Sagar Dharia's avatar Sagar Dharia
Browse files

i2c: qcom: geni: Turn off resources during system-suspend if needed



I2C clients may need the bus to do transactions while system suspend
is in progress. While Runtime-PM resume turns on resources
successfully for such transactions, runtime-suspend callback is not
called by put_sync method to avoid race between runtime PM and system
PM frameworks.
Turn off resources if this condition is detected during I2C bus
system suspend callback, and set the runtime-PM status to be
consistent with the hardware. If however, transaction is still
ongoing during noirq suspend callback, abort suspend by returning
-EBUSY.

Change-Id: Id93afa765bf97babcb6a9c6922d25f108afdc7f3
Signed-off-by: default avatarSagar Dharia <sdharia@codeaurora.org>
parent 856db920
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment