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
File | Mode | Size |
---|---|---|
amcc | ||
caam | ||
ccp | ||
marvell | ||
nx | ||
qat | ||
qce | ||
sunxi-ss | ||
ux500 | ||
vmx | ||
Kconfig | -rw-r--r-- | 14.7 KB |
Makefile | -rw-r--r-- | 1.4 KB |
atmel-aes-regs.h | -rw-r--r-- | 2.0 KB |
atmel-aes.c | -rw-r--r-- | 35.1 KB |
atmel-sha-regs.h | -rw-r--r-- | 1.4 KB |
atmel-sha.c | -rw-r--r-- | 36.2 KB |
atmel-tdes-regs.h | -rw-r--r-- | 2.6 KB |
atmel-tdes.c | -rw-r--r-- | 37.7 KB |
bfin_crc.c | -rw-r--r-- | 18.6 KB |
bfin_crc.h | -rw-r--r-- | 3.8 KB |
geode-aes.c | -rw-r--r-- | 13.5 KB |
geode-aes.h | -rw-r--r-- | 1.5 KB |
hifn_795x.c | -rw-r--r-- | 76.7 KB |
img-hash.c | -rw-r--r-- | 24.9 KB |
ixp4xx_crypto.c | -rw-r--r-- | 36.5 KB |
mv_cesa.c | -rw-r--r-- | 29.4 KB |
mv_cesa.h | -rw-r--r-- | 3.9 KB |
mxs-dcp.c | -rw-r--r-- | 26.5 KB |
n2_asm.S | -rw-r--r-- | 1.7 KB |
n2_core.c | -rw-r--r-- | 52.3 KB |
n2_core.h | -rw-r--r-- | 6.1 KB |
omap-aes.c | -rw-r--r-- | 30.8 KB |
omap-des.c | -rw-r--r-- | 28.6 KB |
omap-sham.c | -rw-r--r-- | 50.7 KB |
padlock-aes.c | -rw-r--r-- | 15.0 KB |
padlock-sha.c | -rw-r--r-- | 15.9 KB |
picoxcell_crypto.c | -rw-r--r-- | 50.5 KB |
picoxcell_crypto_regs.h | -rw-r--r-- | 5.1 KB |
s5p-sss.c | -rw-r--r-- | 19.4 KB |
sahara.c | -rw-r--r-- | 40.8 KB |
talitos.c | -rw-r--r-- | 84.1 KB |
talitos.h | -rw-r--r-- | 15.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...