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.