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
appletalk
arcnet
bonding
caif
can
cris
dsa
ethernet
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipvlan
irda
phy
plip
ppp
slip
team
usb
vmxnet3
wan
wimax
wireless
xen-netback
Kconfig -rw-r--r-- 14.1 KB
LICENSE.SRC -rw-r--r-- 891 bytes
Makefile -rw-r--r-- 2.0 KB
Space.c -rw-r--r-- 4.1 KB
dummy.c -rw-r--r-- 5.5 KB
eql.c -rw-r--r-- 14.6 KB
geneve.c -rw-r--r-- 34.2 KB
ifb.c -rw-r--r-- 8.5 KB
loopback.c -rw-r--r-- 5.6 KB
macvlan.c -rw-r--r-- 40.0 KB
macvtap.c -rw-r--r-- 32.3 KB
mdio.c -rw-r--r-- 11.9 KB
mii.c -rw-r--r-- 12.3 KB
netconsole.c -rw-r--r-- 24.8 KB
nlmon.c -rw-r--r-- 3.9 KB
ntb_netdev.c -rw-r--r-- 12.3 KB
rionet.c -rw-r--r-- 15.7 KB
sb1000.c -rw-r--r-- 31.3 KB
sungem_phy.c -rw-r--r-- 29.7 KB
tun.c -rw-r--r-- 56.3 KB
veth.c -rw-r--r-- 11.9 KB
virtio_net.c -rw-r--r-- 52.0 KB
vrf.c -rw-r--r-- 23.0 KB
vxlan.c -rw-r--r-- 80.8 KB
xen-netfront.c -rw-r--r-- 54.3 KB

back to top