Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751770AbaLQK1m (ORCPT ); Wed, 17 Dec 2014 05:27:42 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:65248 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750829AbaLQK1k (ORCPT ); Wed, 17 Dec 2014 05:27:40 -0500 From: Arnd Bergmann To: Alexandre Courbot Cc: Ray Jui , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Linus Walleij , Grant Likely , Christian Daudt , Matt Porter , Florian Fainelli , Russell King , Joe Perches , Scott Branden , Linux Kernel Mailing List , "linux-arm-kernel@lists.infradead.org" , "linux-gpio@vger.kernel.org" , bcm-kernel-feedback-list@broadcom.com, "devicetree@vger.kernel.org" Subject: Re: [PATCH v5 1/3] gpio: Cygnus: define Broadcom Cygnus GPIO binding Date: Wed, 17 Dec 2014 11:26:40 +0100 Message-ID: <4583974.6IftQ5bv2t@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <1418342706-14755-2-git-send-email-rjui@broadcom.com> <1628217.66frkAqHMc@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:PxMue0jgCH6c8CWpkElZCFoRK3Dy4hZEXf00i9dwK/HS9bH4Pgo o5anHTzWDF14yObjkJj2DSwys0LDU9Isqs43xMd4jN89LP4Zbwezrn2WlnBC9B1yW1BLKYW 3yv2GJs1sBg1IaDEuipDhl00gdNMNSxJgadSS5x5bzWivLR8xBchMv9tLR/DjyfqkNRwMEA tylDP99UmZwT0fxi5xDsA== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 17 December 2014 11:45:01 Alexandre Courbot wrote: > > Actually we are not that far from being able to do completely without > any GPIO number, and maybe that's what we should aim for. I think the > only remaining offender is the sysfs interface. If we could reach GPIO > controllers through a fixed path and just export their GPIOs there, I > believe we would have fixed the whole issue. What about the hundreds of board files and device drivers that still reference hardcoded gpio numbers? The problem seems mostly solved for anything that uses DT, but there are some architectures and a number of ARM platforms that don't use DT and probably never will. I would assume they could all be changed to use gpiod_lookup tables, but that's a lot of work. Arnd -- 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/