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
ath
b43
b43legacy
brcm80211
cw1200
hostap
ipw2x00
iwlegacy
iwlwifi
libertas
libertas_tf
mediatek
mwifiex
orinoco
p54
prism54
realtek
rsi
rt2x00
ti
zd1211rw
Kconfig -rw-r--r-- 9.2 KB
Makefile -rw-r--r-- 1.4 KB
adm8211.c -rw-r--r-- 53.7 KB
adm8211.h -rw-r--r-- 17.6 KB
airo.c -rw-r--r-- 218.1 KB
airo.h -rw-r--r-- 272 bytes
airo_cs.c -rw-r--r-- 6.4 KB
at76c50x-usb.c -rw-r--r-- 70.8 KB
at76c50x-usb.h -rw-r--r-- 11.1 KB
atmel.c -rw-r--r-- 130.1 KB
atmel.h -rw-r--r-- 1.4 KB
atmel_cs.c -rw-r--r-- 9.7 KB
atmel_pci.c -rw-r--r-- 2.2 KB
mac80211_hwsim.c -rw-r--r-- 87.2 KB
mac80211_hwsim.h -rw-r--r-- 5.9 KB
mwl8k.c -rw-r--r-- 152.9 KB
ray_cs.c -rw-r--r-- 85.2 KB
ray_cs.h -rw-r--r-- 2.1 KB
rayctl.h -rw-r--r-- 25.5 KB
rndis_wlan.c -rw-r--r-- 100.1 KB
wl3501.h -rw-r--r-- 14.4 KB
wl3501_cs.c -rw-r--r-- 53.6 KB
zd1201.c -rw-r--r-- 45.7 KB
zd1201.h -rw-r--r-- 4.1 KB

back to top