From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [PATCH 3/4] gpio: Kontron PLD gpio driver Date: Wed, 10 Apr 2013 22:06:10 +0200 Message-ID: References: <1365441321-21952-1-git-send-email-kevin.strasser@linux.intel.com> <1365441321-21952-3-git-send-email-kevin.strasser@linux.intel.com> <20130409164101.GA20001@roeck-us.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: In-Reply-To: <20130409164101.GA20001@roeck-us.net> Sender: linux-kernel-owner@vger.kernel.org To: Guenter Roeck 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 List-Id: linux-i2c@vger.kernel.org On Tue, Apr 9, 2013 at 6:41 PM, Guenter Roeck wrote: > 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. Ah yes, I was totally wrong here. I thought it was MMIO while it is indeed through an MFD proxy. I'll have a second look then... Yours, Linus Walleij