i2c-designware: add minimal support for runtime PM
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 17 Jan 2013 10:31:06 +0000 (12:31 +0200)
committerWolfram Sang <w.sang@pengutronix.de>
Mon, 28 Jan 2013 04:26:42 +0000 (05:26 +0100)
commit7272194ed391f9db8bb320c50d715e7e6bba8ff3
treeff8aa304c2d9d345b961d6d91f9460d5957b68a1
parent17a76b4b32aca7c19df6988213dfe2eb4b631431
i2c-designware: add minimal support for runtime PM

In order to save power the device should be put to low power states
whenever it is not being used. We implement this by enabling minimal
runtime PM support.

There isn't much to do for the device itself as it is disabled once the
last transfer is completed but subsystem/domain runtime PM hooks can save
more power by power gating the device etc.

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