From: Alan Stern Date: Wed, 6 Jul 2011 08:52:23 +0000 (+0200) Subject: PM / Runtime: Prevent runtime_resume from racing with probe X-Git-Tag: v3.1-rc1~304^2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69c843b45eb3b8f267019e6a05860c9c48337419;p=pandora-kernel.git PM / Runtime: Prevent runtime_resume from racing with probe This patch (as1475) adds device_lock() and device_unlock() calls to the store methods for the power/control and power/autosuspend_delay_ms sysfs attribute files. We don't want badly timed writes to these files to cause runtime_resume callbacks to occur while a driver is being probed for a device. Signed-off-by: Alan Stern Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed