Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751379AbbFCEOB (ORCPT ); Wed, 3 Jun 2015 00:14:01 -0400 Received: from mail-wg0-f47.google.com ([74.125.82.47]:36166 "EHLO mail-wg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750723AbbFCENv (ORCPT ); Wed, 3 Jun 2015 00:13:51 -0400 MIME-Version: 1.0 In-Reply-To: References: <1430901477-10678-1-git-send-email-gregory.0xf0@gmail.com> From: Gregory Fong Date: Tue, 2 Jun 2015 21:13:19 -0700 Message-ID: Subject: Re: [PATCH 0/3] GPIO support for BRCMSTB To: Linus Walleij Cc: "linux-gpio@vger.kernel.org" , Alexandre Courbot , bcm-kernel-feedback-list , Brian Norris , "devicetree@vger.kernel.org" , Florian Fainelli , Ian Campbell , Kumar Gala , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Mark Rutland , Pawel Moll , Rob Herring , Russell King Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1327 Lines: 28 On Tue, Jun 2, 2015 at 2:05 AM, Linus Walleij wrote: > On Wed, May 27, 2015 at 5:26 AM, Gregory Fong wrote: >> I've now actually attempted to use the gpiolib irqchip code. This >> driver can't directly use gpiochip_irqchip_add() because of the >> multiple gpiochip : one irqchip map. At first, I thought it might be >> possible to simply add a new argument (or break things into a helper >> function) to allow setting the associated IRQ domain, but then I can't >> use the generic map and unmap functions which expect the irq_domain >> host_data member to be struct gpiochip *, which makes no sense in this >> case. That puts me right back to implementing a special version of >> the map and unmap function. > > I see. > I think I was wrong, it isn't actually necessary to have a single irq_chip as long as all of the IRQs use the same handler. I have a preliminary implementation doing that instead that seems to work fine. Once I've had a chance to verify that it works in all cases, will post that as v3. Cheers, Gregory -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/