Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp578662ybh; Thu, 12 Mar 2020 07:22:31 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsI6lSEQTBSqntUsLE9ym6XRJ9/k47rWogCpfYoQAwH//hSRZ1B8wiqKSpFWCK7gtdDQA9r X-Received: by 2002:a05:6808:64e:: with SMTP id z14mr2639344oih.79.1584022951260; Thu, 12 Mar 2020 07:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584022951; cv=none; d=google.com; s=arc-20160816; b=srAiiKZpvmxD33XIe/ZBgSpyObK8ayr1Uw0bZY9JEfYoM7ClZsmm5KWzscKDMk3XU/ z9Txp6HLHcnNg4uJG0DDcT7oE8NkYSsduhMGvRCyk7oBccIKqsUPSYQEknMdsv3IBPsm aIqWLA9DMbyzf24KMlG6diMtOVfnv1j7dY0Ye9jvwodxltnvmMHXaK3Sedj8AksGKFGK m+eUfJJeSyxJuPaIRmRKj+6rH8ndFeB0hdK7Sqt6o/xjWE2m9T+Jbye1b5uBC9MfNnF+ G4VpmrYzxzwUECjeb/UJQIIWgoQCHMFNi2WldwAzWupgjnsJJZ28I5j5ZBJmI7jhwtN6 jwcA== 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=79OHKgNVg5IiTjP/EryhR/on7yjmd+OeOqFhBOB19Rg=; b=sfVRdEJgTQdH4dkWXREqbBTbwHDZrKB8RnbWW1zno+1lI22CQ1tY/3iiachb0Bo5rd QbMaDCkre2pjG5kOxTFFoBkHbpnBCNI0KoIBOtYonjsgX/f2hrPrjRvlHI8oYWivLkGG lHt8Sq9WgLVqcu6VGEm3OK7yeCJ9J2X62Oe9jYToRHvaz63QJa4yBL6+sbALB7sepEuI jfljrkE47gUQ+PBgzQRcyai7ecYj8CVVBF+CQwiAqYrkp4PFP9aUWSsQjvHDOA+pOvZl Ywe1FFhVDt0efKwtfionPdqVa1cMr1HpBcP2Go0Z2B0QFoIHjkD46Rbh9AySzfqRjLap 6Eug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hlXc9bv7; 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 l11si2958138otk.207.2020.03.12.07.22.15; Thu, 12 Mar 2020 07:22:31 -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=hlXc9bv7; 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 S1727585AbgCLOVs (ORCPT + 99 others); Thu, 12 Mar 2020 10:21:48 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:45107 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727514AbgCLOVs (ORCPT ); Thu, 12 Mar 2020 10:21:48 -0400 Received: by mail-lj1-f196.google.com with SMTP id e18so6621650ljn.12 for ; Thu, 12 Mar 2020 07:21:46 -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=79OHKgNVg5IiTjP/EryhR/on7yjmd+OeOqFhBOB19Rg=; b=hlXc9bv7wKtJYos/CvmIf1aWytTx7tjjvZA7MyZXi7udPi5CdammboSrae1hgCitp/ MSpq1qvYRN9mFEXkFN/xNTTmmao3V3GjlW0KxdQXRUqYqGp5IwObLZ7yB+renP8z+pfN tTWRkIMDIS1GZe95+PfMemVe3rr1Kwnkd636g3iGRWP+yiHdYGH7FrFNCkkgIeRsEdxg L1z1MSWPXkvi5ST+LYKisjEtlJI83foQzqkY8AUQk+nrdOaavjVDuTxl3sWpnDBKyxpA I+Y+/KkkggsGEGEO3b8x79C2+nvBFhV0SVSG0v4dMd8b9iZmSihZqNyIYhxl61ZhaL+L SMHA== 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=79OHKgNVg5IiTjP/EryhR/on7yjmd+OeOqFhBOB19Rg=; b=EvTMv+P4uuTVWdoSNhzI6VhDDuVQu7M8H8KjNTtxfpDNSzQYFjvcAt1NHUrK9H3XlI GQQsOBCMg9zRiw2VWSheK6uUicVq6metFN3APSyhPU6qrv9AeWO1+DBJwdrhAfKN+m97 3O5UIWptWKvDY/h+PS2LzRxlI1N+GR6utFa4QV4Edcx9tWrA8SqJ6U5F10GABSSf4ziL u5/DdhtznWLfpL9dOVrD3x3Z9r17gYW3ViD38Xh8FqV+ocYp4H/HRiQIPFr9b7aegT8d Eo0X3B0BW50fToajNzilweWR1wB7z8izCf2j7oJFTtARxi7pfYjvZKI0cLWOKPGZMFth hgAQ== X-Gm-Message-State: ANhLgQ281yN3WR9WBLH2yKDaPdsnkKiFiUheNiI7rGrLrW85JjX6AwCb h+x990VhYgFsDtLKPtdayNg1qfxfHvdYXqiHEkLQRQ== X-Received: by 2002:a05:651c:2c1:: with SMTP id f1mr5239338ljo.125.1584022905409; Thu, 12 Mar 2020 07:21:45 -0700 (PDT) MIME-Version: 1.0 References: <20200218151812.7816-1-geert+renesas@glider.be> <20200218151812.7816-3-geert+renesas@glider.be> In-Reply-To: <20200218151812.7816-3-geert+renesas@glider.be> From: Linus Walleij Date: Thu, 12 Mar 2020 15:21:34 +0100 Message-ID: Subject: Re: [PATCH v5 2/5] gpiolib: Add support for GPIO line 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 Hi Geert, I'm sorry for the slow review, it's a large patch set and takes some time to sit down and review, and see whether my earlier comments have been addressed. On Tue, Feb 18, 2020 at 4:18 PM Geert Uytterhoeven wrote: > Currently GPIOs can only be referred to by GPIO controller and offset in > GPIO lookup tables. > > Add support for looking them up by line name. > Rename gpiod_lookup.chip_label to gpiod_lookup.key, to make it clear > that this field can have two meanings, and update the kerneldoc and > GPIO_LOOKUP*() macros. > > Signed-off-by: Geert Uytterhoeven > Reviewed-by: Ulrich Hecht > Reviewed-by: Eugeniu Rosca > Tested-by: Eugeniu Rosca I will try to understand why this change is necessary to implement the gpio aggregator (probablt I will comment that on the other patches like "aha now I see it" or so, but it would help a lot if the commit message would state the technical reason to why we need to do this change, like what it is that you want to do and why you cannot do it without this change. Yours, Linus Walleij