diff options
author | Tony Lindgren <tony@atomide.com> | 2016-02-12 17:56:52 +0100 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-02-12 17:56:52 +0100 |
commit | cf26f1137333251f3515dea31f95775b99df0fd5 (patch) | |
tree | 6db45242fd172ed2fa1f56b0c5fb97c2f78fae81 /arch/arm/boot/dts/tps65217.dtsi | |
parent | ARM: OMAP2+: Improve omap_device error for driver writers (diff) | |
download | linux-cf26f1137333251f3515dea31f95775b99df0fd5.tar.xz linux-cf26f1137333251f3515dea31f95775b99df0fd5.zip |
ARM: OMAP2+: Fix omap_device for module reload on PM runtime forbid
If a driver PM runtime is disabled via sysfs, and the module is
unloaded, PM runtime can't do anything to disable the device. Let's
let the interconnect disable the device on BUS_NOTIFY_UNBOUND_DRIVER.
Otherwise omap_device will produce and error on the following module
reload. This can be easily tested with something like:
# modprobe omap_hsmmc
# echo on > /sys/devices/platform/68000000.ocp/4809c000.mmc/power/control
# rmmod omap_hsmmc
# modprobe omap_hsmmc
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Nishanth Menon <nm@ti.com>
Cc: Rafael J. Wysocki <rafael@kernel.org>
Cc: Tero Kristo <t-kristo@ti.com>
Reported-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/boot/dts/tps65217.dtsi')
0 files changed, 0 insertions, 0 deletions