Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp692771ybe; Wed, 11 Sep 2019 03:15:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1zS7YlmRJvJszLmwmC2o/xqJrFZ0shgmVnNg0vmJkHtTKJ6KuiGkaLTS81ZVhOfHxjxZ7 X-Received: by 2002:a50:d090:: with SMTP id v16mr35703605edd.176.1568196908869; Wed, 11 Sep 2019 03:15:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568196908; cv=none; d=google.com; s=arc-20160816; b=bnyDWDjjnwqkn0WbAbOSRSyAfbzMX5CmEssk2aiZs3T/UtIfPEKkzexWiCyd1KXZYe T7VUUryy8BWRrD1BOAOVl2bw8ipsSy2q4yNUFZ8f+Zk/Hkc48Z6oo4X9JdlsJRINkXd+ Tqhig+oN+n65Qv/eHzp9elTDvY69hDd5R4SbM8SM8EDZvvalA99haT6jqM+QKNqqmTpj FvzaJfVDpYaOuT3DS/BjFC9HGF/9SIWehlvqQ/pWawg1qJET1qnE9nWT2xFgkPp5FLft vAGqzbNSW3iSVrXOCxh8K6UlY6V+CZ/HDrHBteOqoSzdqowGJqj1alO2EF+xLeoR8FsF //Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3M63LrG7x4EL82UFdpWrP/9mQ7ENkTmec+0FbO71I3U=; b=tMvFs2MoY8g/HgMd49LOdw5N5KG2ITO32cNJwu3W1U7QZNxH2bNgm/O3QL/xsBgsjP 9bp4SHv01U9qGSnQR21BM8fF9P8JpidobQ7lJvCyvAzaqAtXwZnpH3u5zLXhlXTOqmS7 5L70I2ySB5W7Pv+8yEjgxnOLe3rYpQbdMoqIftfBZSxmkgfIBTUw6fgNxfJQ3E5yYi1L ZP7F/rfk5gbSXiAk7Z274WDJsmtIwIoYywPTezup2wTXdtCdJJZxNVUGDAYShtNU/mxE qemHpda6CaFbnU9t9Z66V3jOSFfeD63DpIj0WuIz61DqdJyN/gtfydIzELvkd8qVwkVD K0mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=anZV1hGs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id um3si11070148ejb.391.2019.09.11.03.14.45; Wed, 11 Sep 2019 03:15:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=anZV1hGs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727565AbfIKKM3 (ORCPT + 99 others); Wed, 11 Sep 2019 06:12:29 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:42164 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726842AbfIKKM3 (ORCPT ); Wed, 11 Sep 2019 06:12:29 -0400 Received: by mail-lj1-f196.google.com with SMTP id y23so19398057lje.9 for ; Wed, 11 Sep 2019 03:12:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3M63LrG7x4EL82UFdpWrP/9mQ7ENkTmec+0FbO71I3U=; b=anZV1hGsHQ0z1I7A96aJmqJ9C+jSf5S0WZzmj5riq0TO4C4XTdh61XfESCOdVK7/HG ZcTZZMCmwGzHPy5ca0/pD2rQcHMIabGHMDDjeILV3sHF1ZLht/o0tdV8knjUIh4joiLw m3FrJZldDwYb1O8mcZRFFIXGvaGsfVCE6YENAm0fSjYHk7QyrQPTqsBvX56MG6kpaGKk OkHG31ufBamCooV1exe8XXHIX+PLLKnYXIALwiNdE7gjhUggrNU5LAhZqnARlj8naLfQ rHUphgQfJU2v6QXgckORHG3H4aH8VQiYhBGjvyOjG4T/L38EwZktvb0+eeqZTAm3D/1z tXyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3M63LrG7x4EL82UFdpWrP/9mQ7ENkTmec+0FbO71I3U=; b=Ph4rh5kn4j7vdtfBBEdJtoudR0VdihMIcvQYc2N2Q2vST1Wf6J4fiYPB2eBXUVI0G2 sJ9qTCQdLL4+5HrhPtZqa2ivLb88/2ruEEEmfjY5THO7ifpaT1bEd2FVGsFS6yuDLmNz Cl/TY7pm6MXZ+1OC3S74funKi7WM9E3pHeUbC4Kw850Z7u4QOTS6jWxr3cuLBMIQq3t8 cj55A8cdiHW4kvvp+rTt6JTV2ACmlBPmTuBVJmGKwJefgPfNw1ni8IeDFWjrvTmNZLPV X8JJXfdsg2eIRUOtXJG+U6mjjCerr6uPKIIzDdIO4AKEgvPs9vGi3gClvIppQRbSYhzp H2TA== X-Gm-Message-State: APjAAAXFJ25HJeR0VdJpCkU4xfeAOiYZhb7LzcMEIk8NMrSPGhBIA8RY kNkaO6GoZV89G0UJnwtuTn/VNkJMbAVbRQItGgSlGQ== X-Received: by 2002:a05:651c:1108:: with SMTP id d8mr14938226ljo.180.1568196747444; Wed, 11 Sep 2019 03:12:27 -0700 (PDT) MIME-Version: 1.0 References: <20190906062727.13521-1-rashmica.g@gmail.com> In-Reply-To: <20190906062727.13521-1-rashmica.g@gmail.com> From: Linus Walleij Date: Wed, 11 Sep 2019 11:12:15 +0100 Message-ID: Subject: Re: [PATCH v3 4/5] gpios: Use ngpio property from device tree if available To: Rashmica Gupta Cc: Bartosz Golaszewski , Joel Stanley , Andrew Jeffery , "open list:GPIO SUBSYSTEM" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 6, 2019 at 7:27 AM Rashmica Gupta wrote: > Use the ngpio property from the device tree if it exists. If it doesn't > then fallback to the hardcoded value in the config. > > This is in preparation for adding ast2600 support. The ast2600 SoC has > two GPIO controllers and so requires two instances of the GPIO driver. > We use the ngpio property to different between them as they have > different numbers of GPIOs. > > Signed-off-by: Rashmica Gupta Patch applied with some fuzzing. Yours, Linus Walleij