Re: [PATCH ver. 3] PM: add synchronous runtime interface for interrupt handlers

2010-11-26 Thread Rafael J. Wysocki
On Thursday, November 25, 2010, Alan Stern wrote: > This patch (as1431c) makes the synchronous runtime-PM interface > suitable for use in interrupt handlers. Subsystems can call the new > pm_runtime_irq_safe() function to tell the PM core that a device's > runtime_suspend and runtime_resume callba

Re: [linux-pm] [PATCH ver. 3] PM: add synchronous runtime interface for interrupt handlers

2010-11-25 Thread Rafael J. Wysocki
On Thursday, November 25, 2010, Oliver Neukum wrote: > Am Donnerstag, 25. November 2010, 16:52:39 schrieb Alan Stern: > > When a device is declared irq-safe in this way, the PM core increments > > the parent's usage count, so the parent will never be runtime > > suspended. This prevents difficult

Re: [linux-pm] [PATCH ver. 3] PM: add synchronous runtime interface for interrupt handlers

2010-11-25 Thread Oliver Neukum
Am Donnerstag, 25. November 2010, 16:52:39 schrieb Alan Stern: > When a device is declared irq-safe in this way, the PM core increments > the parent's usage count, so the parent will never be runtime > suspended. This prevents difficult situations in which an irq-safe > device can't resume because

[PATCH ver. 3] PM: add synchronous runtime interface for interrupt handlers

2010-11-25 Thread Alan Stern
This patch (as1431c) makes the synchronous runtime-PM interface suitable for use in interrupt handlers. Subsystems can call the new pm_runtime_irq_safe() function to tell the PM core that a device's runtime_suspend and runtime_resume callbacks should be invoked with interrupts disabled and the spi