On Wed, Dec 28, 2011 at 11:21:24AM +0000, Mark Brown wrote: > When runtime power management is enabled put the Samsung keypad driver > into suspend mode with wakeups disabled whenever the device is open but > a key is not actually been pressed. As well as saving a trivial amount of > power this will support the use of SoC wide idle modes which put the entire > device into a retention mode and use explicit wakeup sources to exit. > > Since not all of the interrupt controllers used with the driver support > set_irq_wake() (though they all do the right thing) and there's a nasty > WARN() when we disable wake after failing to enable it keep track of the > current wake status from runtime PM and only disable wake if we managed > to enable it; I'm not entirely sure why this doesn't affect the existing > uses of the API in the driver. > > System suspend is unaffected as the driver core will runtime resume any > suspended devices prior to system suspend. > Applied, thank you Mark. -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html