From mboxrd@z Thu Jan 1 00:00:00 1970 From: grant.likely@secretlab.ca (Grant Likely) Date: Thu, 17 May 2012 14:37:06 -0600 Subject: [PATCH RESEND v9 1/2] gpio: Adjust of_xlate API to support multiple GPIO chips In-Reply-To: <1337200832-26630-1-git-send-email-stigge@antcom.de> References: <1337200832-26630-1-git-send-email-stigge@antcom.de> Message-ID: <20120517203706.6B8223E0621@localhost> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, 16 May 2012 22:40:31 +0200, Roland Stigge wrote: > This patch changes the of_xlate API to make it possible to manipulate the > actual used gc. This way, multiple GPIO banks can be supported with the same DT > registered GPIO controller. > > The issue was discussed upon the integration of LPC32xx's DT support for its > GPIO (see separate patch). > > Signed-off-by: Roland Stigge I still wasn't happy with this approach, so I bugged Arnd and we discussed some options. So, I think I've got a better solution that doesn't change the signature of of_xlate. Instead it allows of_xlate to return an error code and still have multiple banks referring to the same gpio_chip. I've just posted the series. Can you try it out and make sure it works for you? g. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Likely Subject: Re: [PATCH RESEND v9 1/2] gpio: Adjust of_xlate API to support multiple GPIO chips Date: Thu, 17 May 2012 14:37:06 -0600 Message-ID: <20120517203706.6B8223E0621@localhost> References: <1337200832-26630-1-git-send-email-stigge@antcom.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1337200832-26630-1-git-send-email-stigge-uj/7R2tJ6VmzQB+pC5nmwQ@public.gmane.org> 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: glikely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org, arm-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linus.walleij-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org, kevin.wells-3arQi8VN3Tc@public.gmane.org, srinivas.bakki-3arQi8VN3Tc@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org Cc: Roland Stigge List-Id: devicetree@vger.kernel.org On Wed, 16 May 2012 22:40:31 +0200, Roland Stigge wrote: > This patch changes the of_xlate API to make it possible to manipulate the > actual used gc. This way, multiple GPIO banks can be supported with the same DT > registered GPIO controller. > > The issue was discussed upon the integration of LPC32xx's DT support for its > GPIO (see separate patch). > > Signed-off-by: Roland Stigge I still wasn't happy with this approach, so I bugged Arnd and we discussed some options. So, I think I've got a better solution that doesn't change the signature of of_xlate. Instead it allows of_xlate to return an error code and still have multiple banks referring to the same gpio_chip. I've just posted the series. Can you try it out and make sure it works for you? g. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755255Ab2EQUhL (ORCPT ); Thu, 17 May 2012 16:37:11 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:59430 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753563Ab2EQUhI (ORCPT ); Thu, 17 May 2012 16:37:08 -0400 From: Grant Likely Subject: Re: [PATCH RESEND v9 1/2] gpio: Adjust of_xlate API to support multiple GPIO chips To: Roland Stigge , glikely@secretlab.ca, arm@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linus.walleij@stericsson.com, kevin.wells@nxp.com, srinivas.bakki@nxp.com, devicetree-discuss@lists.ozlabs.org, rob.herring@calxeda.com Cc: Roland Stigge In-Reply-To: <1337200832-26630-1-git-send-email-stigge@antcom.de> References: <1337200832-26630-1-git-send-email-stigge@antcom.de> Date: Thu, 17 May 2012 14:37:06 -0600 Message-Id: <20120517203706.6B8223E0621@localhost> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 May 2012 22:40:31 +0200, Roland Stigge wrote: > This patch changes the of_xlate API to make it possible to manipulate the > actual used gc. This way, multiple GPIO banks can be supported with the same DT > registered GPIO controller. > > The issue was discussed upon the integration of LPC32xx's DT support for its > GPIO (see separate patch). > > Signed-off-by: Roland Stigge I still wasn't happy with this approach, so I bugged Arnd and we discussed some options. So, I think I've got a better solution that doesn't change the signature of of_xlate. Instead it allows of_xlate to return an error code and still have multiple banks referring to the same gpio_chip. I've just posted the series. Can you try it out and make sure it works for you? g.