Re: [PATCH] HID: i2c-hid: Only disable irq wake if it was successfully enabled during suspend

2015-07-28 Thread Mika Westerberg
On Mon, Jul 27, 2015 at 05:08:06PM -0700, Andrew Duggan wrote: On at least one platform the kernel prints a warning on resume saying Unbalanced IRQ 37 wake disable. This is because enable_irq_wake in the suspend function is failing. This patch checks to see if the call to enable_irq_wake

Re: [PATCH] HID: i2c-hid: Only disable irq wake if it was successfully enabled during suspend

2015-07-28 Thread Andrew Duggan
On 07/28/2015 04:33 AM, Mika Westerberg wrote: On Mon, Jul 27, 2015 at 05:08:06PM -0700, Andrew Duggan wrote: On at least one platform the kernel prints a warning on resume saying Unbalanced IRQ 37 wake disable. This is because enable_irq_wake in the suspend function is failing. This patch

[PATCH] HID: i2c-hid: Only disable irq wake if it was successfully enabled during suspend

2015-07-27 Thread Andrew Duggan
On at least one platform the kernel prints a warning on resume saying Unbalanced IRQ 37 wake disable. This is because enable_irq_wake in the suspend function is failing. This patch checks to see if the call to enable_irq_wake succeeded before calling disable_irq_wake. Signed-off-by: Andrew Duggan