From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753624AbcJMK1w (ORCPT ); Thu, 13 Oct 2016 06:27:52 -0400 Received: from mga09.intel.com ([134.134.136.24]:34605 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753389AbcJMK1o (ORCPT ); Thu, 13 Oct 2016 06:27:44 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,339,1473145200"; d="scan'208";a="1044119435" Date: Thu, 13 Oct 2016 13:25:14 +0300 From: Mika Westerberg To: Benjamin Tissoires Cc: Jiri Kosina , David Arcari , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] HID: i2c-hid: exit if the IRQ is not valid Message-ID: <20161013102514.GQ2774@lahna.fi.intel.com> References: <1476351045-8829-1-git-send-email-benjamin.tissoires@redhat.com> <1476351045-8829-3-git-send-email-benjamin.tissoires@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1476351045-8829-3-git-send-email-benjamin.tissoires@redhat.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.7.0 (2016-08-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 13, 2016 at 11:30:45AM +0200, Benjamin Tissoires wrote: > From: David Arcari > > When i2c-core doesn't find the IRQ associated to the GPIO because > the gpiochip is not available, it assigns -EPROBE_DEFER to the irq. > We need to bail out there and on any other error in an IRQ. > > Signed-off-by: David Arcari > Signed-off-by: Benjamin Tissoires Reviewed-by: Mika Westerberg