Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp510973rwe; Wed, 31 Aug 2022 06:37:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR4+OcbFL4gXLpow5hKU7Qy5fSAw+3LssPmGEUgJXRLEsqkcMjkh04FlEBKHpcWm6nNOILua X-Received: by 2002:a17:906:9b15:b0:73d:3943:d407 with SMTP id eo21-20020a1709069b1500b0073d3943d407mr19299743ejc.564.1661953071545; Wed, 31 Aug 2022 06:37:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661953071; cv=none; d=google.com; s=arc-20160816; b=UgG6zwMSjzas1VTYkzTDT7HFsKV2juWwmlqlwaxMwUmlsr66Eo4+v3TYLDc3kcc4mh b/f0SZYykh7h6HJ8F3oRGK5dPlm5OL79+kPQM6gGv4BGPMThWQixwCecltL5jK3HkEzQ Vz409+paJoQW2ozud7bPIo7OkkljofhJf0oGP7kv/psNHDxoOdi1nFDlsYdkc/irLz+J oiB6pqBj+uT64jtC/khHUQ32ZGdNkJKI/ShvqrT4q7G50spI7o/tiMLdlw3TFs9CiE5t +dxpDJ1AoMKE07tb/ehagP3H3T3ZHTa8e23LHm8Sj6tgkjdIs7OyIwkfVQvX7kFIbFST LI7g== 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=CgFPDK2LvRhAS6goxi4X/Ic8NNdHal1iYUOcFxcfEdk=; b=qO7mIPhlOeDNqMs4nNNhQnmmYRQkNL/RSTGhcvEDEy1NMPNyQ0EXmMeFJ6X8ebi7Dc GvEIp5Gnweov5j1u29PuZk45FUVkHPx2g9nfeNw8WVgW+q5FfgGeO/gxYu4r/G+c/z1o DchwuM1kvx/FRBuj3Ra4keept0AvdWHg7k4q7IwOVlZsmL6NCyz/Ogz91vXxJR3D3E4w +8LhJxnUxU5DgAZ35qhxdtbfDDJKyZ5Vl6bS71AqSrA5ZBzul680ksMQxJkUIIOe5Gfx fkKYE36WFqDkbbGNhns9X77uvOukdtfZ1/TssfvjlmLvMkGGiyf9jPxSyH85ZhLfAAd3 TRSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OihL0qcd; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w20-20020a05640234d400b004486d3bcacdsi6927662edc.5.2022.08.31.06.37.25; Wed, 31 Aug 2022 06:37:51 -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=@linaro.org header.s=google header.b=OihL0qcd; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229652AbiHaNcn (ORCPT + 99 others); Wed, 31 Aug 2022 09:32:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231232AbiHaNck (ORCPT ); Wed, 31 Aug 2022 09:32:40 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A14C9D21E8 for ; Wed, 31 Aug 2022 06:32:38 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id c59so12196605edf.10 for ; Wed, 31 Aug 2022 06:32:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=CgFPDK2LvRhAS6goxi4X/Ic8NNdHal1iYUOcFxcfEdk=; b=OihL0qcd7WTm78kvrrTsnVuXk1//E+pKPWsyjcGbB/P4HjEZXfREd/CjogrV6SDOlL GsHoAFIvYgnKbfcx6ccWiSl/xuBdQG3P5vgPFA8wCFCPYFhzTVSvCx3jIWFOrPt68oMR qUwnav9c//Odlu5krHpyk+sUs7gdRgOWz0XpnFbonZzefWiC4MhVBSZ3S2qO0xugA1Ov AYmMZUOVp+svGZPETa8oThZlCTa0q8zfwEfoUmRrznv3BP2HFAI0R6ZJICBLg/fmdhkh BaKfz/hMLg5YOV9680dDdCjKdeV3uupWudbX/ipOad25UYmOrgCvX6SUubv1SUxPTtZN rsOQ== 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; bh=CgFPDK2LvRhAS6goxi4X/Ic8NNdHal1iYUOcFxcfEdk=; b=jbvau9+efM0T5KPEHimweOfMmVnYq9NwQhL3QIxFd+V68HMloxsvwBaUuh34au8mn3 KnFtOmkFSeDa2cGMGv/jHNDlFlxwu6Yv093ml5QiGaIxPB9Tsyreos7cynfVg1sHbU25 HAEWsgEBBmqTaA8TCdKaURGXX7zUD8WqvRXFYkt/YqPHogVtzyjGSoIEXTToJhXvL3M4 BGBAyjt9aOk2KeDc8rL/2a+UdRDbhuLsWYXkbsVD0mNCDVfrEHAU6X79Ft/cbdnAU4xs wUz4njZ0HTycrySpSqk9wbVuHo+zL1ZVOi6m6W0GHB7GLkG8WRwHlmz6+9RMW9mujxUa es8Q== X-Gm-Message-State: ACgBeo18uNCyAUabX7v00DPFItmzG4vRyg/BjSH4E67v2onJ0Ze0lYxa tyYai0ptns5WqwImHU5yRSGwxxj+rNN3WATQQ7vqog== X-Received: by 2002:a05:6402:2691:b0:43d:ba10:854b with SMTP id w17-20020a056402269100b0043dba10854bmr23759195edd.158.1661952757218; Wed, 31 Aug 2022 06:32:37 -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: Linus Walleij Date: Wed, 31 Aug 2022 15:32:25 +0200 Message-ID: Subject: Re: [PATCH] gpio: Allow user to customise maximum number of GPIOs To: Davide Ciminaghi Cc: 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,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 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. Today I think we would solve this by simply creating software nodes, which are the same no matter if you're doing device tree or ACPI, so it would have been much easier now, I think. :/ Yours, Linus Walleij