diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2016-06-28 11:35:02 +0300 |
---|---|---|
committer | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2016-07-01 11:00:14 +0300 |
commit | 8e0469a4f3e647059c0ef8db961140ee25246fbd (patch) | |
tree | e98b5e24ba140a035f3e36243a041788dcd83009 /net/compat.c | |
parent | af8c34ce6ae32addda3788d54a7e340cad22516b (diff) |
stm class: Add runtime power management handling
Currently, there's no runtime pm in stm class devices, which makes it
harder for the underlying hardware drivers to handle their power
management.
This patch applies the following runtime pm policy to stm class devices,
which their parents can rely on for their power management tracking:
* device is in use during character device writes,
* delayed autosuspend is used to keep it active between adjacent
writes,
* device is in use while mmio regions are mapped,
* device is is use while any stm_source devices are linked to it.
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Chunyan Zhang <zhang.chunyan@linaro.org>
Diffstat (limited to 'net/compat.c')
0 files changed, 0 insertions, 0 deletions