From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lothar =?UTF-8?B?V2HDn21hbm4=?= Subject: Re: [PATCH 1/2] regulator: ltc3589: make IRQ optional Date: Thu, 21 Jan 2016 11:26:11 +0100 Message-ID: <20160121112611.34e17cb2@ipc1.ka-ro> References: <1453292992-1788-1-git-send-email-LW@KARO-electronics.de> <1453292992-1788-2-git-send-email-LW@KARO-electronics.de> <20160120164258.GF6588@sirena.org.uk> <20160121080524.27af489f@ipc1.ka-ro> <20160121102015.GI6588@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <20160121102015.GI6588@sirena.org.uk> Sender: linux-kernel-owner@vger.kernel.org To: Mark Brown Cc: =?UTF-8?B?QmVub8OudA==?= Cousson , Ian Campbell , Kumar Gala , Liam Girdwood , Mark Rutland , Pawel Moll , Rob Herring , Russell King , Tony Lindgren , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org List-Id: devicetree@vger.kernel.org Hi, > On Thu, Jan 21, 2016 at 08:05:24AM +0100, Lothar Wa=C3=9Fmann wrote: > > > On Wed, Jan 20, 2016 at 01:29:51PM +0100, Lothar Wa=C3=9Fmann wro= te: >=20 > > > > This pin is used as IRQ pin for the LTC3589 PMIC on the Ka-Ro > > > > electronics TX48 module. Make the IRQ optional in the driver an= d use a > > > > polling routine instead if no IRQ is specified in DT. > > > > Otherwise the driver will continuously generate interrupts and = make > > > > the system unusable. >=20 > > > How will the driver generate interrupts if there is no interrupt > > > physically present in the system? >=20 > > It's using timer interrupts to poll the LTC3589 state. >=20 > I know that is what your patch does, my question is why you say in yo= ur > commit log that "Otherwise the driver will continuously generate > interrupts and make the system unusable". > Because the interrupt is level triggered and the polarity of the EXTINT pin is inverted, the interrupt will be constantly active when the IRQ pin of the LTC3589 is inactive. Lothar Wa=C3=9Fmann