https://github.com/torvalds/linux
Revision eb82a3d846fab00c4b9ad6bbe5ade4fa5febc0af authored by Roger Quadros on 10 July 2014, 06:25:03 UTC, committed by Greg Kroah-Hartman on 12 July 2014, 01:23:50 UTC
If probe fails then we need to call pm_runtime_disable() to balance
out the previous pm_runtime_enable() call. Else it will cause
unbalanced pm_runtime_enable() call in the succeding probe call.

This anomaly was observed when the call to devm_phy_create() failed
with -EPROBE_DEFER.

Balance out the pm_runtime_enable() call in .remove() as well.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent e73b49f
History
Tip revision: eb82a3d846fab00c4b9ad6bbe5ade4fa5febc0af authored by Roger Quadros on 10 July 2014, 06:25:03 UTC
phy: omap-usb2: Balance pm_runtime_enable() on probe failure and remove
Tip revision: eb82a3d
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.7 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 275.5 KB
Makefile -rw-r--r-- 51.0 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top