From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7A00ECAAD4 for ; Wed, 31 Aug 2022 21:08:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229977AbiHaVIG (ORCPT ); Wed, 31 Aug 2022 17:08:06 -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-Google-Smtp-Source: AA6agR76c6w2rRme8Rj45ddQoUkKquUlwBPKxJ2AJCe4a6H4/HJoy5tLVXVe0sC85Yh9ty9y1YmBfQ0P0i8nZkcErsk= 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" 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