Revision b4cd08aa1f53c831e67dc5c6bc9f9acff27abcba authored by Wolfram Sang on 16 December 2015, 19:05:18 UTC, committed by Wolfram Sang on 19 December 2015, 11:00:37 UTC
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
1 parent e79e72c
History
File Mode Size
internal
ablk_helper.h -rw-r--r-- 734 bytes
aead.h -rw-r--r-- 18.7 KB
aes.h -rw-r--r-- 1019 bytes
akcipher.h -rw-r--r-- 11.5 KB
algapi.h -rw-r--r-- 10.3 KB
authenc.h -rw-r--r-- 845 bytes
b128ops.h -rw-r--r-- 2.4 KB
blowfish.h -rw-r--r-- 376 bytes
cast5.h -rw-r--r-- 551 bytes
cast6.h -rw-r--r-- 597 bytes
cast_common.h -rw-r--r-- 193 bytes
chacha20.h -rw-r--r-- 595 bytes
compress.h -rw-r--r-- 4.0 KB
cryptd.h -rw-r--r-- 1.8 KB
crypto_wq.h -rw-r--r-- 122 bytes
ctr.h -rw-r--r-- 524 bytes
des.h -rw-r--r-- 503 bytes
drbg.h -rw-r--r-- 8.6 KB
gf128mul.h -rw-r--r-- 8.0 KB
hash.h -rw-r--r-- 29.4 KB
hash_info.h -rw-r--r-- 1.1 KB
if_alg.h -rw-r--r-- 2.4 KB
lrw.h -rw-r--r-- 1.2 KB
mcryptd.h -rw-r--r-- 2.3 KB
md5.h -rw-r--r-- 401 bytes
null.h -rw-r--r-- 303 bytes
padlock.h -rw-r--r-- 649 bytes
pcrypt.h -rw-r--r-- 1.4 KB
pkcs7.h -rw-r--r-- 1.2 KB
poly1305.h -rw-r--r-- 977 bytes
public_key.h -rw-r--r-- 3.2 KB
rng.h -rw-r--r-- 6.6 KB
scatterwalk.h -rw-r--r-- 2.9 KB
serpent.h -rw-r--r-- 673 bytes
sha.h -rw-r--r-- 2.7 KB
sha1_base.h -rw-r--r-- 2.5 KB
sha256_base.h -rw-r--r-- 3.0 KB
sha512_base.h -rw-r--r-- 3.2 KB
skcipher.h -rw-r--r-- 15.5 KB
twofish.h -rw-r--r-- 716 bytes
vmac.h -rw-r--r-- 2.1 KB
xts.h -rw-r--r-- 613 bytes

back to top