Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp632296iog; Mon, 13 Jun 2022 09:31:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBjLSWaw3os3F3Gug3lqjyfAFvQrJdnplAVPOz48gTMpn98OUXY8KBs38MY2UcQWO6Hgkr X-Received: by 2002:a05:6a00:2344:b0:51c:157f:83d5 with SMTP id j4-20020a056a00234400b0051c157f83d5mr160574pfj.5.1655137900107; Mon, 13 Jun 2022 09:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655137900; cv=none; d=google.com; s=arc-20160816; b=t3PptbCqZncies+sJtAUcZFqxInsYysdk6ww0o85qAD0qwIgLNp/z6d3jYzgd80uq6 HC2egDxAKyu12QUufDUyXfg2aKnyWimmJ/7sds5HQCmbm5fYlgVPbL2jltlQMT2X6+lX /dyMXZFDLIiiygGDZN/ZoYbf0cWa6u+860WOLstBE/QVPMQHuSNR+MnGzC2JaUqnPcQf Dp8spbl3eiGz6zUykVJdmRlNP2YNk4OIF5IfKgyVBXvJeENrq1Q/9x+D9XLOaTNqgoRy GlNgAGiUgEWmbkxCeNtRqydIa5IMwlhiGkS55ZRFQ2kXEwyuePnzkIjSRVcxfEMntuzR MmaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=sapmI4x+wwEOkBjOkXI6QZEqhmnYywg4bAkRUA2zGZc=; b=NLBMfZrhjWVsdy6H27A90yPq5yGcvG60gvhWP/rCt+l77NtNzpOPFWa03L2/lgu1Jc TGWr7SIwxOAPsh30jaH7vfTphkhERCkn606AxnVLepWZ3wop1/HmrqoVQmGvtVwIv+ac R4gNxx1U67l9dXNiGeOVoALun1L4ki/YCnkXpfWmUqkoOYAST2TPRlYQHDg3e3qMD0QZ HeZgE8+jlrRo7STkAPtnougJ068WzeyXiUIFuLrr2BXWIOtCsk0w9/QIoqXnGameTIeG HdNxpMruGyLlWoB/4pJPNwe6n93b3RBp7py8UcaVT8TOKKneHcUV33UCeCR7896+V80h gzzw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q1-20020a639801000000b003fe4274ccf7si11547423pgd.547.2022.06.13.09.31.28; Mon, 13 Jun 2022 09:31:40 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359094AbiFMNJR convert rfc822-to-8bit (ORCPT + 99 others); Mon, 13 Jun 2022 09:09:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357404AbiFMM6n (ORCPT ); Mon, 13 Jun 2022 08:58:43 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D4D962BCF; Mon, 13 Jun 2022 04:17:36 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CD648D6E; Mon, 13 Jun 2022 04:17:35 -0700 (PDT) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 332CE3F73B; Mon, 13 Jun 2022 04:17:33 -0700 (PDT) Date: Mon, 13 Jun 2022 12:17:29 +0100 From: Andre Przywara To: Samuel Holland Cc: Jernej =?UTF-8?B?xaBrcmFiZWM=?= , Chen-Yu Tsai , Russell King , Bartosz Dudziak , Bjorn Andersson , Krzysztof Kozlowski , Lorenzo Pieralisi , Luca Weiss , Maxime Ripard , Rob Herring , Robin Murphy , Stephan Gerhold , Thierry Reding , Vinod Koul , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: Re: [PATCH 0/3] ARM: sunxi: Remove A31 and A23/A33 platform SMP code Message-ID: <20220613121729.46233a75@donnerap.cambridge.arm.com> In-Reply-To: <2833034.e9J7NaK4W3@kista> References: <20220531045038.42230-1-samuel@sholland.org> <2833034.e9J7NaK4W3@kista> Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, 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 On Sun, 12 Jun 2022 23:09:07 +0200 Jernej Škrabec wrote: Hi Samuel, > Dne torek, 31. maj 2022 ob 06:50:35 CEST je Samuel Holland napisal(a): > > This series is preparation for converting the PRCM MFD and legacy clock > > drivers to a CCU clock driver. May I ask what the purpose of this exercise is? So if I understand correctly, then it's about to convert the sun8i-a23-prcm MFD driver and its children to a single "modern style" CCU clock driver, with its opaque DT node? If that changes the compatible strings or the references to the clock providers (and I guess it would need to?), then this would mean an incompatible change. Which also means we would need to keep the old code around, to maintain compatibility with "old" DTs? So what is the win then? Now we have *two* clock drivers, for the same device, which need maintenance and testing. So can you confirm that this will be a breaking change? > The platform SMP code references the PRCM > > node to map its MMIO space, which will break when the PRCM node is > > removed/replaced. > > Why can't we just leave old platform code? If older dtb file is used, it would > still work. Actually, isn't trivial to support new CCU binding too, just by > including new CCU compatible string? IIUC new CCU node will have same address > as current PRCM node. This aims for a similar direction, though in this case the alternative (PSCI) predates the sunxi specific method in the kernel support. Can we just deprecate this code, maybe issue a warning, with the hint to update the bootloader (which might not be possible for some devices)? Cheers, Andre > Best regards, > Jernej > > > > > Since PSCI has been available for 7+ years, instead of trying to deal > > with the migration, I think it's safe to just delete this code. > > > > > > Samuel Holland (3): > > ARM: sunxi: Remove A31 and A23/A33 platform SMP code > > ARM: dts: sunxi: Remove obsolete CPU enable methods > > dt-bindings: arm: Remove obsolete CPU enable methods > > > > .../devicetree/bindings/arm/cpus.yaml | 2 - > > arch/arm/boot/dts/sun6i-a31.dtsi | 1 - > > arch/arm/boot/dts/sun8i-a23-a33.dtsi | 1 - > > arch/arm/mach-sunxi/Makefile | 1 - > > arch/arm/mach-sunxi/platsmp.c | 194 ------------------ > > 5 files changed, 199 deletions(-) > > delete mode 100644 arch/arm/mach-sunxi/platsmp.c > > > > -- > > 2.35.1 > > > > > > >