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
events
xen-pciback
xenbus
xenfs
Kconfig -rw-r--r-- 9.4 KB
Makefile -rw-r--r-- 1.6 KB
acpi.c -rw-r--r-- 2.7 KB
balloon.c -rw-r--r-- 18.1 KB
biomerge.c -rw-r--r-- 609 bytes
cpu_hotplug.c -rw-r--r-- 2.2 KB
dbgp.c -rw-r--r-- 1.1 KB
efi.c -rw-r--r-- 11.3 KB
evtchn.c -rw-r--r-- 13.6 KB
fallback.c -rw-r--r-- 1.5 KB
features.c -rw-r--r-- 762 bytes
gntalloc.c -rw-r--r-- 15.3 KB
gntdev.c -rw-r--r-- 22.8 KB
grant-table.c -rw-r--r-- 29.9 KB
manage.c -rw-r--r-- 7.2 KB
mcelog.c -rw-r--r-- 10.1 KB
pci.c -rw-r--r-- 6.0 KB
pcpu.c -rw-r--r-- 9.2 KB
platform-pci.c -rw-r--r-- 4.7 KB
preempt.c -rw-r--r-- 1.2 KB
privcmd.c -rw-r--r-- 15.0 KB
privcmd.h -rw-r--r-- 77 bytes
swiotlb-xen.c -rw-r--r-- 19.3 KB
sys-hypervisor.c -rw-r--r-- 12.1 KB
tmem.c -rw-r--r-- 10.2 KB
xen-acpi-cpuhotplug.c -rw-r--r-- 10.7 KB
xen-acpi-memhotplug.c -rw-r--r-- 11.8 KB
xen-acpi-pad.c -rw-r--r-- 4.0 KB
xen-acpi-processor.c -rw-r--r-- 16.8 KB
xen-balloon.c -rw-r--r-- 6.6 KB
xen-scsiback.c -rw-r--r-- 47.8 KB
xen-selfballoon.c -rw-r--r-- 17.8 KB
xen-stub.c -rw-r--r-- 2.8 KB
xlate_mmu.c -rw-r--r-- 5.3 KB

back to top