diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2015-12-16 22:05:18 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-12-19 14:00:37 +0300 |
commit | b4cd08aa1f53c831e67dc5c6bc9f9acff27abcba (patch) | |
tree | 58141870b6398365cb1a4b7a98e0b94161e0c0b3 /drivers/virtio/virtio_ring.c | |
parent | e79e72c5a242fa21c971cfb40017f1039daf4d77 (diff) | |
download | linux-b4cd08aa1f53c831e67dc5c6bc9f9acff27abcba.tar.xz |
i2c: rcar: disable runtime PM correctly in slave mode
When we also are I2C slave, we need to disable runtime PM because the
address detection mechanism needs to be active all the time. However, we
can reenable runtime PM once the slave instance was unregistered. So,
use pm_runtime_get_sync/put to achieve this, since it has proper
refcounting. pm_runtime_allow/forbid is like a global knob controllable
from userspace which is unsuitable here.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
Diffstat (limited to 'drivers/virtio/virtio_ring.c')
0 files changed, 0 insertions, 0 deletions