Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1802371rwe; Fri, 2 Sep 2022 04:13:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR5bFh+b4oYg0NweqfhxeuYj8F9TNXKunDBfXhePVwye2duFxc34r5LtpMGqxhr8P6hVzBm4 X-Received: by 2002:a05:6402:5201:b0:448:7b26:b94f with SMTP id s1-20020a056402520100b004487b26b94fmr19570640edd.119.1662117180489; Fri, 02 Sep 2022 04:13:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662117180; cv=none; d=google.com; s=arc-20160816; b=ZmDaia4SqZcfdJozk5yqjP43MtNnIJeVIipXq4CEc9ddh9X+GT7+cTrDoTbTxmC4oP B1dUxCvJiR6OYCNynctr42cs6B/U1hc7rCFS7uu2u1yeBKtL+YFfqxJxnVHrCza9WMSy Azb94I39VgL4rDtxEC/jCQTgtXTxTo7Yw77xB1PbT6dqdQob86a0GXSizA6rbFA4A2iV dNb5eRfjiKz4AhazFchRxCNE6TBoqT7ZZ44fe6faVi1G5qiXbBIfJaBx7cT47Gj+qZ86 L/+rViq6TUvpb8DJlpY0LUJJNvUxBQx0+OdSr/VVvkoCjtNMJxjvYbB2TdM0kqoItnqp aKzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=dZTws1L2y2xyjbs91n4hGu/TU6dg0KKGjBmfL0/vaak=; b=upHmI9WhBjFJm3T1q2vkt9DFjdc4aLUbmU5GPNQhISiZuL+9Y8MUwq7/NJ8iSW0lD3 PTBSR/j02/c0wruxzIogtmy9jWtCUf6RMVDfi0uOSK/SiMqKYiRN8tNvB/+FGgGvr1Js euHEXoT76b4xjmk78R6h+bCaLaoadJwIGcGIDikytraVTqsdhNw3nLGz0E6mKuTxi5Mu fEKDtlBzqQG0UiqtDr8Ut1MpozDLIDZVjsNUE+W1aKqIGYJ/m9SAvzSjR+4hq5BJoBbJ DVvmwWMEgxjMzbhiXqNDlAd7+wIIXT65KUr0pZwAqs29bXkKl53Hq+29WXsonB8Il95H WjjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a50fe0a000000b00447d566ae3bsi1332390edt.457.2022.09.02.04.12.29; Fri, 02 Sep 2022 04:13:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235989AbiIBLC3 (ORCPT + 99 others); Fri, 2 Sep 2022 07:02:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235957AbiIBLC0 (ORCPT ); Fri, 2 Sep 2022 07:02:26 -0400 Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19FAFC58EC; Fri, 2 Sep 2022 04:02:25 -0700 (PDT) Received: by mail-qt1-f170.google.com with SMTP id l5so1151434qtv.4; Fri, 02 Sep 2022 04:02:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=dZTws1L2y2xyjbs91n4hGu/TU6dg0KKGjBmfL0/vaak=; b=aofngmOsGOIslWnPv0kCg6/DJjGt52Eh3RGbfiln+J5wyI+7p1HxTFggisKIJRM+zR tlLuy7xlPv08uTqW0NH/PbAe8+1LtA+41b6FA62gknkeEY97jdApDYOvnm8dsVsKAGA/ DPU/d/3kEntm4ESAphszrPeyTlG4t2aiN085LJN/fyP2+rrsQH0Prx72o0oGSpITyOd6 6V2mwjMilK3c6l8Bvjud0FYnYlyLal/gIcTZZwvzY7qri+5hXeNkGjOz155Ve0jpuOlp jymsTBsPNqwi8F+wrw2ej3d0xDbSDwJy6vWEzjC3Gbddow+FSB1gyuocfZ773BJtR07e wHNQ== X-Gm-Message-State: ACgBeo3qGEIMXgXi9h5QnctZB2x5omtfpaOn/I/z3NSbLKtrV/HGUupF NxQqBuGwuWLFJp+BwwPUzXMcBqxjPSzRpg== X-Received: by 2002:a05:622a:512:b0:343:6f1:a026 with SMTP id l18-20020a05622a051200b0034306f1a026mr27548265qtx.323.1662116543504; Fri, 02 Sep 2022 04:02:23 -0700 (PDT) Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com. [209.85.128.169]) by smtp.gmail.com with ESMTPSA id l21-20020a37f915000000b006bbe7ded98csm1128981qkj.112.2022.09.02.04.02.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Sep 2022 04:02:22 -0700 (PDT) Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-324ec5a9e97so12900707b3.7; Fri, 02 Sep 2022 04:02:22 -0700 (PDT) X-Received: by 2002:a0d:e895:0:b0:340:ab79:3285 with SMTP id r143-20020a0de895000000b00340ab793285mr26854285ywe.358.1662116542087; Fri, 02 Sep 2022 04:02:22 -0700 (PDT) MIME-Version: 1.0 References: <18cda49e-84f0-a806-566a-6e77705e98b3@csgroup.eu> <1d548a19-feec-42b9-944d-890d6dde2fb8@www.fastmail.com> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 2 Sep 2022 13:02:10 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 4/8] gpiolib: Get rid of ARCH_NR_GPIOS To: Andy Shevchenko Cc: Arnd Bergmann , =?UTF-8?B?TnVubyBTw6E=?= , Christophe Leroy , Linus Walleij , Bartosz Golaszewski , Geert Uytterhoeven , Keerthy , Russell King , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Catalin Marinas , Will Deacon , Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , linux-arm Mailing List , Linux-Arch , Linux Documentation List , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Linux-sh list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, CC linux-sh On Fri, Sep 2, 2022 at 12:53 PM Andy Shevchenko wrote: > On Wed, Aug 31, 2022 at 11:55 PM Arnd Bergmann wrote: > > drivers/pinctrl/renesas/gpio.c: gc->base = pfc->nr_gpio_pins; // ??? don't understand > > I think, w/o looking into the code, that this just guarantees the > continuous numbering for all banks (chips) on the platform. This part of the code depends on CONFIG_PINCTRL_SH_FUNC_GPIO, which is used only on SH. 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