Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2788rwe; Wed, 31 Aug 2022 15:06:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR7MM8eCEQsTGi36beLLJ6321l2Xo5bUJY8Dz/jhyoPy/kATcO4OK/JyzctVfZE9AIx7RBWJ X-Received: by 2002:a63:e548:0:b0:430:c46:11ea with SMTP id z8-20020a63e548000000b004300c4611eamr5889095pgj.401.1661983592401; Wed, 31 Aug 2022 15:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661983592; cv=none; d=google.com; s=arc-20160816; b=D1R6tXhLcUs/oGmP1cY0vGGXwQlOiTmTOFoC7hyFMpJci+ZLlRzA7DovBNXujncQnm 7gEuJCr/K4+L5m0kKliSOW3b/atZi0soUI5gtF9iTjqAy6RlV7/GCOICzttIbc/Pknzl Pci4clq83r7NJS+Qxw1Fj2Bg7PGlBHa8/aX31Rh5/leafQnEasFxwa/W7H7n/LgIpi0u shUQfyCuJaseulX/Ol73YwB8gpPGzUtiG20cTTo4mssPU3D0WFPEt6Y4IgY3A2+EFY1r rKuCK4zrlXE1bjdDCZY9pXyEn4+e9UTQhlqOhKgrGmqej7IzzjJh5C02Dnovzdat7uug QW6w== 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:dkim-signature; bh=Vo1R8xrzalzVOud5svkuQP83U7J146b1RS62ApyG/Fo=; b=rUiIJzS2S79B3T3cqIma3oQ375gdjIEvpXkWEcRzk6e+IkAqQMwOA5NZHo0/2qHVhY wh2XJdoT1xPaMbY7tT5iabB64GQNSzR1wCexfQ4xStUlDwMgsrxH/UzKggk/jfQ2EhHs s1RM7M6OSvDZEMeb0EDLe7dBdeFweEPaUWaa+vcI158Hjf6iPnqLjdoYk3l103rsmts7 +S9OcvL4fhWglrSE2Is/wmAh2EPS5r1FVgykhYMZfcvUBNYYRQSJBdE2zJaweXLTQARE kjPAkmi0yU6bdKB+ZdnSPSKOuFbJgbEqKDHoUQayKna1NHlfZXghadC7zHZMKsIzqrVX 3kOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=U1fhx7lv; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020a639306000000b00420188aa35fsi5837034pge.432.2022.08.31.15.05.26; Wed, 31 Aug 2022 15:06:32 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=U1fhx7lv; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229766AbiHaVIF (ORCPT + 99 others); Wed, 31 Aug 2022 17:08:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230436AbiHaVID (ORCPT ); Wed, 31 Aug 2022 17:08:03 -0400 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D732FF32C2; Wed, 31 Aug 2022 14:08:02 -0700 (PDT) Received: by mail-qt1-x836.google.com with SMTP id cb8so12038674qtb.0; Wed, 31 Aug 2022 14:08:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=Vo1R8xrzalzVOud5svkuQP83U7J146b1RS62ApyG/Fo=; b=U1fhx7lv3G5YbJZxBuQWCPlvguTm/AFt44YIpAX+OZeO+mSXMl43RfQ3iYAazBNwnO 8ejs7pxeq4lAGsuxxZpI4BWrfL5kj9A9UqlgXoaGvCmFaXCLmVWwdmOTfIuY76X+gJ+3 RpBTiA1Q/8oPxYDNKFJHDt1bKFdD10bHoQ2nsVGqJViamJk+rdIswUZTlkjuh6YcFF4u 4E/V4sp8VW+o0r9+O8ODra1UAVS/4E/WyCPi0kJfokl61gihx++lD4oLgj6VgW0aEnHM 5AaynjubFcmtCGnRw9VQNw6KsKHzAWRSHUlS8q9QSN67qf+sBXuSONIUM+F51KKmxLtf AnOA== 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=Vo1R8xrzalzVOud5svkuQP83U7J146b1RS62ApyG/Fo=; b=bGgo9IMQmGZU5pxE7nm+agusogAFEz7oEV3tiyvdMaKeQCkZ24TndHtBLzq7U18L0o MwYJsin37PcHdqvu9Shwa+yZyuDMpO24XrkwMo/ueiweX+KVb2uL/9YruxjievC6Rf/L CHsM5M1bR4wXdSwxiPeuxXjUYI/mTHF/TossHR1aWqw9BO6ieJuObVT6uV+GnjHQnz+k rt9MnFT8MJgFKC7i0TGDZ7hJpzkgpsc/3x9QKPa+TmsLxyz9jWs7hoG/sRaxR5BGASNK E3YOzESU3ks9oLf/1OEkqFFzCc9tVln93fwnFLBMVtfSuONY3Y+4lFBySRLFNdrhY/su 2bnA== X-Gm-Message-State: ACgBeo0Wg35+w3fTGdrY519f13judlfnFyN4XdSlf3g8awM5Z+9Hgk+4 ogOP/T5koM6B82Z+/GKQjf2cM67Ha7oa27pSzd8= X-Received: by 2002:a05:622a:40a:b0:343:77ba:727f with SMTP id n10-20020a05622a040a00b0034377ba727fmr21128499qtx.481.1661980081927; Wed, 31 Aug 2022 14:08:01 -0700 (PDT) MIME-Version: 1.0 References: <87f2ff4c-3426-201c-df86-2d06d3587a20@csgroup.eu> <515364a9-33a1-fafa-fdce-dc7dbd5bb7fb@csgroup.eu> In-Reply-To: From: Andy Shevchenko Date: Thu, 1 Sep 2022 00:07:26 +0300 Message-ID: Subject: Re: [PATCH] gpio: Allow user to customise maximum number of GPIOs To: Davide Ciminaghi Cc: Linus Walleij , Arnd Bergmann , Christophe Leroy , Alexandre Courbot , Alexandre Courbot , Bartosz Golaszewski , Jonathan Corbet , Russell King , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , "open list:GPIO SUBSYSTEM" , "open list:DOCUMENTATION" , open list , "moderated list:ARM PORT" , "open list:GENERIC INCLUDE/ASM HEADER FILES" , Alessandro Rubini Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Wed, Aug 31, 2022 at 5:14 PM Davide Ciminaghi wrote: > On Wed, Aug 31, 2022 at 03:32:25PM +0200, Linus Walleij wrote: > > On Tue, Aug 30, 2022 at 9:58 AM Davide Ciminaghi wrote: > > > > > the sta2x11 was a chip containing AMBA peripherals and a PCIe to AMBA bridge > > > (it is still in production as far as I know, but deprecated for new designs). > > > It would typically be installed on x86 machines, so you needed to build and > > > run AMBA drivers in an x86 environment. The original drivers we started from > > > had platform data, but then we were told to switch to DTS. > > > > For the record I think that was bad advice, I hope it wasn't me. > > But the world was different back then I suppose. > > Adding DTS to x86 which is inherently ACPI is not a good idea. > > Especially if you look at how SBSA ACPI UARTS were done > > in drivers/tty/serial/amba-pl011.c. > > > now that I think of it, ACPI was also listed as a possible choice, but the > problem was that we didn't know much about ACPI, and took the DTS way. > So there was no bad advice, just fear of the unknown :-) Feel free to ask, we have experts in the mailing list(s). -- With Best Regards, Andy Shevchenko