From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758685AbcILNU1 (ORCPT ); Mon, 12 Sep 2016 09:20:27 -0400 Received: from mga02.intel.com ([134.134.136.20]:11858 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757742AbcILNUW (ORCPT ); Mon, 12 Sep 2016 09:20:22 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,322,1470726000"; d="scan'208";a="759833351" Date: Mon, 12 Sep 2016 16:11:11 +0300 From: Mika Westerberg To: Phidias Chiang Cc: Anisse Astier , Linus Walleij , Heikki Krogerus , Yu C Chen , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] pinctrl: cherryview: Do not mask all interrupts on probe Message-ID: <20160912131111.GG1811@lahna.fi.intel.com> References: <20160908101303.GA22716@ktx> <20160908102402.GC15313@lahna.fi.intel.com> <20160908162843.GB22716@ktx> <20160909061834.GG15313@lahna.fi.intel.com> <20160909082358.GA23895@ktx> <20160909085832.GK15313@lahna.fi.intel.com> <20160911080506.GO15313@lahna.fi.intel.com> <20160912065656.GA2411@ktx> <20160912090401.GB1811@lahna.fi.intel.com> <20160912130444.GB2411@ktx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160912130444.GB2411@ktx> 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 Mon, Sep 12, 2016 at 09:04:44PM +0800, Phidias Chiang wrote: > On Mon, Sep 12, 2016 at 12:04:01PM +0300, Mika Westerberg wrote: > > > > OK, I see what is going on now. When I changed handle_simple_irq to > > handle_bad_irq, the IRQ core in __irq_do_set_handler() thinks the > > handler is uninstalled and masks the line. > > > > If you change handle_bad_irq to handle_simple_irq, in call to > > gpiochip_irqchip_add(), does it work then? > > Yes it does :), thank you for the support! Thanks for testing. So we need to use handle_simple_irq here instead. Linus, do you see any problems with that?