From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH 1/2] gpio: add a driver for the Synopsys DesignWare APB GPIO block Date: Tue, 20 Dec 2011 14:50:17 +0000 Message-ID: <20111220145017.GC29727@sirena.org.uk> References: <1324203229-15571-1-git-send-email-jamie@jamieiles.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Linus Walleij Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, Linus Walleij , Rob Herring List-Id: devicetree@vger.kernel.org On Sun, Dec 18, 2011 at 11:01:38PM +0100, Linus Walleij wrote: > If you check drivers/gpio/gpio-u300.c you can see how I handled > this on another hardware where triggering on falling and rising > edges was a binary choice and thus mutually exclusive: I toggle > for each interrupt. This seems like a common pattern, ideally we'd be able to factor it out into genirq (ideally along with the other common issue with simulating level triggered interrupts using a controller that only does edge, though that one is more involved).