diff options
author | Tony Lindgren <[email protected]> | 2016-02-12 08:56:52 -0800 |
---|---|---|
committer | Tony Lindgren <[email protected]> | 2016-02-12 08:56:52 -0800 |
commit | cf26f1137333251f3515dea31f95775b99df0fd5 (patch) | |
tree | 6db45242fd172ed2fa1f56b0c5fb97c2f78fae81 /scripts | |
parent | 08c78e9d61a857c9077240e7ddb67550c6f96d06 (diff) |
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 <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Rafael J. Wysocki <[email protected]>
Cc: Tero Kristo <[email protected]>
Reported-by: Ulf Hansson <[email protected]>
Acked-by: Kevin Hilman <[email protected]>
Acked-by: Ulf Hansson <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions