]> asedeno.scripts.mit.edu Git - linux.git/commit
i2c: i801: Add runtime PM support with autosuspend
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Thu, 10 Mar 2016 12:12:22 +0000 (14:12 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 12 Apr 2016 21:21:25 +0000 (23:21 +0200)
commita7401ca5596e246f17b087b84fe55a429b666132
tree9df78308aba68ec453378571096b4dafdf93ce76
parent2ee73c484dc4b8831b745a5feed56382b8741a72
i2c: i801: Add runtime PM support with autosuspend

Allow runtime PM so that PM and PCI core can put the device into low-power
state when idle and resume it back when needed in those platforms that
support PM for i801 device.

Enable also autosuspend with 1 second delay in order to not needlessly
toggle power state on and off if there are multiple transactions during
short time.

Device is resumed at the beginning of bus access and marked idle ready
for autosuspend at the end of it.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Tested-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-i801.c