From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755368AbbG1LeG (ORCPT ); Tue, 28 Jul 2015 07:34:06 -0400 Received: from mga01.intel.com ([192.55.52.88]:59202 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752814AbbG1LeE (ORCPT ); Tue, 28 Jul 2015 07:34:04 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,562,1432623600"; d="scan'208";a="771350111" Date: Tue, 28 Jul 2015 14:33:37 +0300 From: Mika Westerberg To: Andrew Duggan Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Kosina , Benjamin Tissoires Subject: Re: [PATCH] HID: i2c-hid: Only disable irq wake if it was successfully enabled during suspend Message-ID: <20150728113337.GD11956@lahna.fi.intel.com> References: <1438042086-9827-1-git-send-email-aduggan@synaptics.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1438042086-9827-1-git-send-email-aduggan@synaptics.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 succeeded before calling disable_irq_wake. While this looks okay, I'm wondering if this can also be fixed from the irq chip side by setting IRQCHIP_SKIP_SET_WAKE to .flags, given that the driver does not provide such function?