]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: nomadik: Fixup deployment of runtime PM
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Feb 2014 15:20:41 +0000 (16:20 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 5 Mar 2014 16:10:32 +0000 (17:10 +0100)
commit96b142e3c48de772d1d9b4260dacefcf8152fbc0
tree3b9e2e2905afc128af8905656ddd91146e7d31cc
parent432b719293acff5db396f8f2f78e91d2b983e642
i2c: nomadik: Fixup deployment of runtime PM

Since the runtime PM state is expected to be active according to the
amba bus, we must align our behaviour while probing to it.

Moreover, this is needed to be able to have the driver fully functional
without depending on CONFIG_RUNTIME_PM.

Since the device is active while a successful probe has been completed,
the reference counting for the clock will be screwed up and never reach
zero. We resolve this by implementing runtime PM callbacks and let them
handle the resources accordingly, including the clock.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
[wsa: s/#if/#ifdef/]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-nomadik.c