OSDN Git Service

i2c-msm-v2:Synchronise runtime PM callback operations
authorShrey Vijay <shreyv@codeaurora.org>
Wed, 14 Dec 2016 10:26:05 +0000 (15:56 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Thu, 22 Dec 2016 09:46:01 +0000 (01:46 -0800)
commit1ee08ea3dd185eaba6d3bd812a7b9a1e57735200
treecc74a7237084611e54622296d754e714074293da
parente379f786aa82c6c94b95cbb06befba802731019a
i2c-msm-v2:Synchronise runtime PM callback operations

During system wakeup from suspend by connecting USB cable,
runtime PM framework transitions from enabled to disabled
state during i2c transaction. This causes asymmetric increment
and decrement of device's usage counter which blocks runtime
PM suspend callback.

To avoid this, remove rumtime PM status check on suspend path
to make it symmetric with the resume path. This takes care
of unaccounted increment/decrement of device's usage counter.

Change-Id: I47cfe2cd7d93ba5db57365cf250c600dac22bab1
Signed-off-by: Shrey Vijay <shreyv@codeaurora.org>
drivers/i2c/busses/i2c-msm-v2.c