Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp898493ybl; Thu, 12 Dec 2019 06:39:32 -0800 (PST) X-Google-Smtp-Source: APXvYqwOP0/DVUM50Qu1zx6ZjVLBA38XAT9w/Ozo0qxJCdUJ1M/y4bytiZAoO0atskEDxBBVlpnT X-Received: by 2002:aca:3b54:: with SMTP id i81mr5306356oia.155.1576161572818; Thu, 12 Dec 2019 06:39:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576161572; cv=none; d=google.com; s=arc-20160816; b=PpUSbLsOSdrx+nXQ3QY0/hq1Hn4f1W4GrES48E0h9hYSJFnjzat7yedlkmAx5VzMLj o/ukEGLZt/BMHe3nSsr7Yk0gQRwUCjEfAlZv/Zx32G51gThl2Z4t9CdYWIWeR7hXKAoI 3uENHWznfQSWKzuqiN4Au6vSKV99SvQyFKZViogrlWJR+ugb2o9ZKPEajcx/pEcc7Z5k 2F1zgXDew3YG2My2GzS3+q36d2gnjTH0tsgmosmwEXDof5O0cw/9RixGBvi9dC1Z+1+T jN9CurTyBhg/ZwZ/ifuIZ/wEGrKQ+qKB6SRpxJRsqiRhtxi1IXU4Ukj0O3T/qILKMXeG BkLQ== 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=mFBaysu79yDikUBKmCJOSK+/KcLNsfSxo1Kg6RMTYzo=; b=hO6Mt7eBsM0wTmHmVnMXrV7oFBhSc9wxuoYMApBP+Iw7MjeRI9qovXkCSqEpob8nty RM7n0GKwU2gU+A9Sd0eQprQ8jg73nDunWZX82kCeOwpwynjphst2qMaVMhbgyGDKHtVH Iy+LfA+4uU7r1mR/61q25keUdJCiI+ICWO3w4bcqmKOTVRQ7uYrJzUtwU9Ym55gQlI6T ULp/O3e9ejgGzi9+v0j1BbkE5VpyKoHHu+RiBmjyPSXIS1VWdN90IiTF01rJq6Jbn+V5 ZAAmFX2HNwmiy0zsKPza7y2YH9THQPi6oBiHF7d8s7/OEhRaJYTdTIuxCpBYqGT8WqNi kd4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CYTDu33S; 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 y130si3174274oiy.28.2019.12.12.06.39.17; Thu, 12 Dec 2019 06:39:32 -0800 (PST) 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=CYTDu33S; 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 S1729797AbfLLOgr (ORCPT + 99 others); Thu, 12 Dec 2019 09:36:47 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:37360 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729796AbfLLOgg (ORCPT ); Thu, 12 Dec 2019 09:36:36 -0500 Received: by mail-lj1-f193.google.com with SMTP id u17so2557187lja.4 for ; Thu, 12 Dec 2019 06:36:35 -0800 (PST) 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=mFBaysu79yDikUBKmCJOSK+/KcLNsfSxo1Kg6RMTYzo=; b=CYTDu33S/uRKGhVT7parvwID0Z4EEkvon8ISEhgQg581I+1vygWkVRJfIX6VyR90IP 5s90on/IBWtzNCkfiPg7uk+yBQZZgeRl/SRSDr7c+w33usVVyP+MJiAG1YhQEWLjO/Lm P/0CD0GARye2OYMRl25h1tC04+CXoKFn2YTnfaKWCVyq0RUQtJskTe7aNXDDUW4mR74/ t7GoesEcr1oPDRiIJXWl4xt+DmU6FKcdogFEPM7GJ0MbM1/bRU5TyZ/4OU2CRtiJtNg9 8b733kTi7YVBHa42ZnE/qE1MABlz/YuyRm0mRdXrwoA54K3MFcLxF9VgrBgIm71NLVT5 m2mg== 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=mFBaysu79yDikUBKmCJOSK+/KcLNsfSxo1Kg6RMTYzo=; b=edJBkQf1YRwEF5M4uJWASEhDAoq/7CTZ3HnvJh6U1iEK22INhqYFVa03iPjsrLuTtZ BtReFC0PUdj5mU+R+Q6O/EDy0dHwmYyWZL8tB1pLNrG9vNAjmr2QNGxemixam7qZ+0GT pBRquvrMIHVYgKyYtcuRKAviruCRKqeXo0krPxcnRHZIfP075OKZnxRR7nzMwnhQI/c+ KTv1NDbEPKIIBMFWmWxCnkF1spieHDyqkKZy2+e8RF+llbtahgVyI53a16IBQTSDGdZh zBAyJZN7HVJx/YDg3whT/RBIjjsBx4fLRiNSO4yUtXxJDagh6SFiHWz+/LF0Bk6vyVu1 ZWXw== X-Gm-Message-State: APjAAAWacIYGOrPRCV6FW3PZ5DP2S+h3+ykx4ris9OUWNesbbo1Re3VA 1FWKH1BgbLkVK7WJcP+h1QjhRoA4UrdN3ykmqXwGFA== X-Received: by 2002:a2e:844e:: with SMTP id u14mr6119798ljh.183.1576161394471; Thu, 12 Dec 2019 06:36:34 -0800 (PST) MIME-Version: 1.0 References: <20191127084253.16356-1-geert+renesas@glider.be> <20191127084253.16356-3-geert+renesas@glider.be> In-Reply-To: From: Linus Walleij Date: Thu, 12 Dec 2019 15:36:22 +0100 Message-ID: Subject: Re: [PATCH v3 2/7] gpiolib: Add support for gpiochipN-based table lookup To: Geert Uytterhoeven Cc: Geert Uytterhoeven , Bartosz Golaszewski , Jonathan Corbet , Rob Herring , Mark Rutland , Harish Jenny K N , Eugeniu Rosca , Alexander Graf , Peter Maydell , Paolo Bonzini , Phil Reid , Marc Zyngier , Christoffer Dall , Magnus Damm , "open list:GPIO SUBSYSTEM" , Linux Doc Mailing List , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , 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 Thu, Dec 12, 2019 at 2:33 PM Geert Uytterhoeven wrote: > On Thu, Dec 12, 2019 at 2:20 PM Linus Walleij wrote: > > On Wed, Nov 27, 2019 at 9:43 AM 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" either the > > > corresponding GPIO device's ID number, or the GPIO controller's first > > > GPIO number. > > > > > > Signed-off-by: Geert Uytterhoeven > > > > What the commit message is missing is a rationale, why is this needed? > > Right. To be added: so they can be looked up in the GPIO lookup table > using either the chip's label, or the "gpiochipN" name. After reading the aggregator/forwarder driver I am not convinced that this is needed at all and I think this patch can be dropped, but check my review and see what you think! Thanks, Linus Walleij