Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp580310ybh; Thu, 12 Mar 2020 07:24:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs1jZNQ8lieozVgpPSBtfGN2mfJAoGIgu5E9Mxj/H75dz9NgZyA/AWZ7UTKF+W17q1YVal5 X-Received: by 2002:a05:6830:4038:: with SMTP id i24mr3643981ots.0.1584023049240; Thu, 12 Mar 2020 07:24:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584023049; cv=none; d=google.com; s=arc-20160816; b=bXtf8U0iRt0cRhKiW8ZKzmXNDK0llx0kDubC2uWzjDSzcoJ5nYYiCXCbSiZmfZ7XaX EQBw+uHJhpBk3FYbhfBWIjFMhX1836IP8z5c/o26OEH+Z49tqDakqtywCLhRhykAAOXm Djc80HWDJ+HECSb/lFCN1rZgG53vPyb6kz3UhlP++z+PeCMSRwYepnVvvNJL8agtyV2Z X0Xwh7WkpNStOzZGXXVq++6dnOd9w4+kJqXRhmm7+y6ZeNobR1NB6vXjpzbITT5QxKqr ZH1KndJJ49kd40dOJAG8HhcxmFHsCUL20O8KI2b/xJEXgJ0HrDPN61qsSh++GTIDljIT xqkA== 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=5Dt+A0XYoM4z0Muyh4Z1oK3OQIHOd+TenS7WS4Spt8M=; b=0Fc9vElh9Qh7cosYCwZg1l9/KcDQDPPg+wT50JF7cyXDzpQcNHv8K5WVue3ISYQukU Iz5+kL+gTE/beNgF52s7A0kmkKTFvNzensK95dfbDySbitfbf/lZmjKjevWHqfJ3MFiZ IPQeCUqd149PiEkN2rwGVzspCBqyPni3Aoy1Xe1ByKK0vVsKY+f6d0j1/q5XtwFGC2F8 vEiuwyhEWQHuZQ4He3lOEJYzhtfFl5GMow4qk/wYDKjn6YUeh0MYphzhBscHDtp3KOb6 0t2ITXvAxNun4mUUptHV6CqLvnhkZCuEHc7Hj4UAOlwDrpGnqM4gFUb3bcCcHpkFqlD1 XLBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kPO+ikxE; 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 k1si1738971oou.60.2020.03.12.07.23.48; Thu, 12 Mar 2020 07:24:09 -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=kPO+ikxE; 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 S1727680AbgCLOXW (ORCPT + 99 others); Thu, 12 Mar 2020 10:23:22 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:32940 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727467AbgCLOXW (ORCPT ); Thu, 12 Mar 2020 10:23:22 -0400 Received: by mail-lj1-f195.google.com with SMTP id f13so6670908ljp.0 for ; Thu, 12 Mar 2020 07:23:20 -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=5Dt+A0XYoM4z0Muyh4Z1oK3OQIHOd+TenS7WS4Spt8M=; b=kPO+ikxEgegYspLtVJSTdDZGCrznn2iZHcCDSpipCfIKchWvbMXImnOGvH1GmkJfoD KcE6fvz9RgDqdCcl4OhN7O0CjnJ+M6liGFX7kS02szV8Mo1+CU8jkrhYkKZ+cX6rh0Qw H/nnJeTMB5ClokfZT4zcoYejI5wYd4XBiBYB1T5WDgosR4K8w/H85ETqh8BS+y3N6LvM 5Y95Pb1xYZfEjIrgLVRhecU/tTp74SEk3Ps55TNUzCeR9gXSB6amj6Kc+BpjDlZq6zaG WIiIfQNErmoQIOMBgKTJD8wyx6zy8TH+bDi310hmLvyph1kUIo4otwnn+KNf7P9k3532 g2vA== 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=5Dt+A0XYoM4z0Muyh4Z1oK3OQIHOd+TenS7WS4Spt8M=; b=Bj5kKVObZ1DrRD1wBlTmKy/Tzqpcr+5PJdy6fjmcLM1BCvnt2nRyI7YKFRl5UgritY E5s8bnmNfSBQzgwz/LJVtEmJmGK1Y7v3afPD3Cxd3FQn3F53l6A6ZQda7setwE/sr2sJ l5nvv6JYxKZw80NWfkBXaezuw5CD8nDR5iup/LnYw5HkyvASLVh0035gXMudn0c3QQMP H44nC62/fdsU4DmS1x07XdS+k9JhRm/5VRp5bXvBVWRmEB/UL0k3f+4wsTTQB4L1eR+q yjz0o92WQ585TSs5YPT7ocux5okm/mgW48ThE2vPBf1idibQNPr/Y+inqU3RkxQIZBv4 KNzA== X-Gm-Message-State: ANhLgQ0bRFxPh4gag008VhviAU1jL9uabnFaJPCyoFfcAq0/IcKciMjv 2O/vwZiJ2nnMBK3A0dk3bzV1gr+f+losf5D9C1AYBA== X-Received: by 2002:a05:651c:2049:: with SMTP id t9mr5600275ljo.39.1584022999468; Thu, 12 Mar 2020 07:23:19 -0700 (PDT) MIME-Version: 1.0 References: <20200218151812.7816-1-geert+renesas@glider.be> <20200218151812.7816-2-geert+renesas@glider.be> In-Reply-To: <20200218151812.7816-2-geert+renesas@glider.be> From: Linus Walleij Date: Thu, 12 Mar 2020 15:23:08 +0100 Message-ID: Subject: Re: [PATCH v5 1/5] gpiolib: Add support for gpiochipN-based table lookup To: Geert Uytterhoeven Cc: Bartosz Golaszewski , Jonathan Corbet , Harish Jenny K N , Eugeniu Rosca , Alexander Graf , Peter Maydell , Paolo Bonzini , Phil Reid , Marc Zyngier , Christoffer Dall , Magnus Damm , Rob Herring , Mark Rutland , "open list:GPIO SUBSYSTEM" , Linux Doc Mailing List , Linux-Renesas , "linux-kernel@vger.kernel.org" , QEMU Developers 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 Tue, Feb 18, 2020 at 4:18 PM Geert Uytterhoeven wrote: > Currently GPIO controllers can only be referred to by label in GPIO > lookup tables. > > Add support for looking them up by "gpiochipN" name, with "N" the > corresponding GPIO device's ID number. > > Signed-off-by: Geert Uytterhoeven > Reviewed-by: Ulrich Hecht > Reviewed-by: Eugeniu Rosca > Tested-by: Eugeniu Rosca Just like with patch 2/5 I have the same problem here that the commit message doesn't state the technical reason why we need to change this and support the device name in these tables and not just labels. (Possibly again I will realize it...) Yours, Linus Walleij