i2c: designware: Add runtime PM hooks
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 15 May 2014 14:37:23 +0000 (17:37 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 2 Jun 2014 17:18:39 +0000 (19:18 +0200)
commit1fc2fe204cb9d8010e70716aa48b5c3db6379da3
tree49ec06b9ace6dac7a955230865c2fb9dba0a7e3a
parentf537295a58ddc4460b9857c6e4a6959685447f3b
i2c: designware: Add runtime PM hooks

It is possible that after entering runtime PM suspend the controller
context is lost due the fact that its power is removed. This happens for
example on Asus T100, an Intel Baytrail based tablet/laptop.

In order to get the controller back to functional state, we need to
implement runtime PM hooks which will re-initialize the hardware during
runtime PM resume. We can re-use the existing system suspend hooks as the
steps to resume/suspend the controller are the same.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-platdrv.c