Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3992333rwe; Tue, 30 Aug 2022 02:37:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR5JhCEJkeBbRqGQcBoZvYoPFaDkMAWRdhjO8t5OOcpsknJnGF4+CzK1EMP4kpUDEfmM0RSG X-Received: by 2002:a17:907:70a:b0:741:78ab:dce5 with SMTP id xb10-20020a170907070a00b0074178abdce5mr7614364ejb.527.1661852254618; Tue, 30 Aug 2022 02:37:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661852254; cv=none; d=google.com; s=arc-20160816; b=oaLfJkxNvf3Pwey0EPBVZ8Gd5Gp48pAzTlTEZkZgSzintpvfUZNg1b5koD4sd9WGBC +M5zFa+Et8mzRJIP72FKEDgJ7xXC1w5NZqEqqq0HH4qBLgE18iJ0slGgMjAmlvT97FJQ 5qLrFjumjGeKGXTKqIiHl5e94nPB+gEWphXu58ohjFDNTU4c9UVptoprnepZA032iipQ 8sIFR2N1p6DjZWf5qXQlxWdERwCBO9TIjxftyd51gtfQl0RJ08cmxo27kHTwbPUmxLui tDJqfiP5tJAjDoGkVDUaXAaqoshjk4QJJVLhzLDixsUc7JLeuzuXuZt3tuFPGhbrLuBF K2CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:sender:from:date; bh=FJIK2HsubQ74Ftwi0CPeHF3I6h9E52862fDUjf92vm0=; b=D+w2dl6+KUM/MqruaU4+B0nduJVwlcJFya4LRrY13vxPWAV/skyaRXgVVhyszpUWcf xXktfy0L9MyAe4kyUh0P92Rw2+eBisCnwjkbknye7SM74Uzci+WteupT1C3jqFTUlcaq 4Y+kV6RKmn/fk9f7mDcb2LXeBzSjBY3L50MWTd9Zynz7508gZSNeYZZOwgN7G3RtplIl kVFkFyDcW+bTcFTaO/G/Lyj48FmgsSb7MOIK7K/3nYkW3G0Fdl5jusAqlbP5k8R6lqbR OBo4DpC4iUG/3g9qnMW8ALCPRiHQfE2+VqtKXzovIhn7JmK6u3Q234rmvchCz9kjfhEW 49Jg== 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 g9-20020a056402428900b0043e1c8af8c8si9037808edc.241.2022.08.30.02.36.53; Tue, 30 Aug 2022 02:37:34 -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 S231531AbiH3JSG (ORCPT + 99 others); Tue, 30 Aug 2022 05:18:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231387AbiH3JRz (ORCPT ); Tue, 30 Aug 2022 05:17:55 -0400 X-Greylist: delayed 1804 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 30 Aug 2022 02:17:53 PDT Received: from mail.gnudd.com (mail.gnudd.com [93.91.132.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AFD9D2E95; Tue, 30 Aug 2022 02:17:53 -0700 (PDT) Received: from dciminaghi by mail.gnudd.com with local (Exim 4.94.2) (envelope-from ) id 1oSw8m-0002Aa-Tn; Tue, 30 Aug 2022 09:58:32 +0200 Date: Tue, 30 Aug 2022 09:58:32 +0200 From: Davide Ciminaghi Sender: ciminaghi@gnudd.com To: Arnd Bergmann Cc: Christophe Leroy , Linus Walleij , 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 Subject: Re: [PATCH] gpio: Allow user to customise maximum number of GPIOs Message-ID: References: <87f2ff4c-3426-201c-df86-2d06d3587a20@csgroup.eu> <515364a9-33a1-fafa-fdce-dc7dbd5bb7fb@csgroup.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: X-Face: #Q;A)@_4.#>0+_%y]7aBr:c"ndLp&#+2?]J;lkse\^)FP^Lr5@O0{)J;'nny4%74.fM'n)M >ISCj.KmsL/HTxz!:Ju'pnj'Gz&. X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,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 tl;dr: sta2x11 support can be removed. On Sun, Aug 28, 2022 at 12:04:29PM +0200, Arnd Bergmann wrote: > On Sun, Aug 28, 2022 at 11:06 AM Christophe Leroy > wrote: > > Le 26/08/2022 ?? 23:54, Linus Walleij a ??crit : .... > > I think that just means the code that one would have to modify > is in vendor kernels of devices using this chip, but there is no > way to fix those if they are not in mainline. The last meaningful > patches on this SoC support were in 2012 by Davide Ciminaghi > and Alessandro Rubini, though they still Acked patches after that. > > I wonder if I was missing the interesting bit about it, if the driver > is just obsolete and can be removed, or if there is something > that is still worth fixing here. > Hi, 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. Device trees, though, were not very common under x86 at the time and, perhaps most important, we had a bunch of amba peripherals "behind" a pci bus, which is a dynamic thing. Our idea was to build a device tree at runtime (in user space) and then booting a second kernel via kexec with the correct DTB, but this was not a complete solution. For instance we needed to patch the device tree at runtime to take dynamically assigned IRQ numbers into account. Also the clocks tree had to be dynamically instantiated, once for each sta2x11 chip. Finally, there were some problems allocating dma buffers because the AMBA side of the bridge could only reach some ranges of physical addresses. We had a more or less working prototype, and you may want to have a look at some of our work: https://lore.kernel.org/lkml/5202C655.6050609@zytor.com/t/ Nevertheless the upstreaming effort was eventually too big for Alessandro and myself. So the sta2x11 drivers upstreaming project has been abandoned (even though I like to think of it as one of the funniest failures of my life). Sta2x11 related drivers can of course be removed. Thanks and regards Davide