Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752582AbbDEJBB (ORCPT ); Sun, 5 Apr 2015 05:01:01 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]:34538 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751320AbbDEJA5 (ORCPT ); Sun, 5 Apr 2015 05:00:57 -0400 MIME-Version: 1.0 In-Reply-To: <34835209.cQQp4PEGGk@avalon> References: <1428064923-24950-1-git-send-email-geert+renesas@glider.be> <1428064923-24950-6-git-send-email-geert+renesas@glider.be> <34835209.cQQp4PEGGk@avalon> Date: Sun, 5 Apr 2015 11:00:56 +0200 X-Google-Sender-Auth: cQMwADZ9yYx3nZRyz-U7vZNHRSw Message-ID: Subject: Re: [PATCH/RFC 5/6] staging: board: Add support for devices with complex dependencies From: Geert Uytterhoeven To: Laurent Pinchart Cc: Geert Uytterhoeven , Greg Kroah-Hartman , Magnus Damm , Arnd Bergmann , Simon Horman , Kuninori Morimoto , Marc Zyngier , driverdevel , Linux-sh list , Linux PM list , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1399 Lines: 37 Hi Laurent, On Sat, Apr 4, 2015 at 2:46 PM, Laurent Pinchart wrote: >> + for (i = 0; i < dev->ngpios; i++) >> + gpio_request_one(dev->gpios[i].gpio, dev->gpios[i].flags, >> + pdev->name); > > Aren't GPIO numbers dynamic too in DT-based systems ? Beside, shouldn't it be Apparently not, as the old legacy number still works, and it doesn't work without. > the responsibility of the drievr to request the GPIOs it needs ? As far as I understand it, on Armadillo this is used more for platform configuration than for device configuration, as it affects multiple devices (the comment says DBGMD/LCDC0/FSIA MUX). I guess I could use a "gpio-hog" subnode in DT instead, but then we're already implementing the conversion to DT ;-) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- 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/