commit | 69c843b45eb3b8f267019e6a05860c9c48337419 | [log] [tgz] |
---|---|---|
author | Alan Stern <stern@rowland.harvard.edu> | Wed Jul 06 10:52:23 2011 +0200 |
committer | Rafael J. Wysocki <rjw@sisk.pl> | Wed Jul 06 10:52:23 2011 +0200 |
tree | 11a797e0cfa0dee3e0f790123a687f9daa2789bb | |
parent | 62052ab1d1a456f5f62f8b753e12d10ca1a83604 [diff] |
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 <stern@rowland.harvard.edu> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>