Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753573AbbHJGx5 (ORCPT ); Mon, 10 Aug 2015 02:53:57 -0400 Received: from eusmtp01.atmel.com ([212.144.249.242]:35614 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752613AbbHJGxy (ORCPT ); Mon, 10 Aug 2015 02:53:54 -0400 Date: Mon, 10 Aug 2015 08:53:34 +0200 From: Ludovic Desroches To: Sascha Hauer CC: Ludovic Desroches , , , , , Subject: Re: [RFC PATCH 0/3] New Atmel PIO4 pinctrl/gpio driver Message-ID: <20150810065334.GC2635@odux.rfo.atmel.com> Mail-Followup-To: Sascha Hauer , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linus.walleij@linaro.org, nicolas.ferre@atmel.com References: <1438355290-28255-1-git-send-email-ludovic.desroches@atmel.com> <20150805073117.GP5161@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20150805073117.GP5161@pengutronix.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1343 Lines: 39 Hi Sascha, On Wed, Aug 05, 2015 at 09:31:17AM +0200, Sascha Hauer wrote: > On Fri, Jul 31, 2015 at 05:08:07PM +0200, Ludovic Desroches wrote: > > Hi, > > > > Following our discussion, I send an RFC version of my driver. RFC because it is > > not totally achieved, some cleanup and feature addition is needed. > > > > At least, we could discuss about the 'core' part. I have used the pinmux > > property as Mediatek driver. Patch 3 is the internal dt files we are using. > > As you can imagine I am fine with the binding, so I can add my acked-by > once you send a non-RFC version. > Great, I'm glad to hear that. > The only thing I never understood is what's so special about GPIOs that > they have to bypass the pinctrl framework and instead a gpio_request > magically translates a gpio into a pin. Not sure to really understand your concern here... Do you mean I could get rid of gpio_request_enable()? > Wouldn't it make sense to at > least add the pins in their GPIO mode to > arch/arm/boot/dts/sama5d2-pinfunc.h? It is done, PIN_PA0 could be used for this purpose. Regards Ludovic -- 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/