Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964871Ab3DIQk5 (ORCPT ); Tue, 9 Apr 2013 12:40:57 -0400 Received: from mail.active-venture.com ([67.228.131.205]:54822 "EHLO mail.active-venture.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936277Ab3DIQkz (ORCPT ); Tue, 9 Apr 2013 12:40:55 -0400 X-Originating-IP: 108.223.40.66 Date: Tue, 9 Apr 2013 09:41:01 -0700 From: Guenter Roeck To: Linus Walleij Cc: Kevin Strasser , "linux-kernel@vger.kernel.org" , Michael Brunner , Samuel Ortiz , Wolfram Sang , Ben Dooks , "linux-i2c@vger.kernel.org" , Grant Likely , Wim Van Sebroeck , linux-watchdog@vger.kernel.org, Darren Hart , Michael Brunner , Greg Kroah-Hartman Subject: Re: [PATCH 3/4] gpio: Kontron PLD gpio driver Message-ID: <20130409164101.GA20001@roeck-us.net> References: <1365441321-21952-1-git-send-email-kevin.strasser@linux.intel.com> <1365441321-21952-3-git-send-email-kevin.strasser@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1635 Lines: 48 On Tue, Apr 09, 2013 at 10:46:15AM +0200, Linus Walleij wrote: > On Mon, Apr 8, 2013 at 7:15 PM, Kevin Strasser > wrote: > > > From: Michael Brunner > > > > Add gpio support for the on-board PLD found on some Kontron embedded > > modules. > > > > Signed-off-by: Michael Brunner > > Signed-off-by: Kevin Strasser > > This looks very generic, setting and clearing bits in bytesized > registers. > > Can you please attempt to use generic GPIO for this? > Linus, I looked into it, but for my part I seem to be missing how the generic GPIO code permits locking access to the hardware (PLD) and setting the PLD's page register. In other words, I don't immediately see how to call kempld_get_mutex_set_index() from the generic GPIO code. The other drivers using generic GPIO code don't seem to have that requirement. Thanks, Guenter > drivers/gpio/gpio-generic.c > > > See for example: > gpio-ep93xx.c, gpio-sodaville.c ... > > Since you don't even have IRQ support in this it will be even simpler. > > Yours, > Linus Walleij > -- > To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- 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/