Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PM / runtime: Document steps for device removal

Put a reminder that during device removal drivers should revert all PM
runtime changes from the probe.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Krzysztof Kozlowski and committed by
Rafael J. Wysocki
8fd2910e 9735a227

+4
+4
Documentation/power/runtime_pm.txt
··· 586 586 but also it allows of more flexibility in the handling of devices during the 587 587 removal of their drivers. 588 588 589 + Drivers in ->remove() callback should undo the runtime PM changes done 590 + in ->probe(). Usually this means calling pm_runtime_disable(), 591 + pm_runtime_dont_use_autosuspend() etc. 592 + 589 593 The user space can effectively disallow the driver of the device to power manage 590 594 it at run time by changing the value of its /sys/devices/.../power/control 591 595 attribute to "on", which causes pm_runtime_forbid() to be called. In principle,