Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2930071lqp; Mon, 25 Mar 2024 13:27:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWatfS6jqRdNkbPs7WB9bjAU+h28rss4QFimmBwoq3QKhA+HkmWFNqgmY+r1sYkA3Wm/cunC665C3ulDh1vccY5TLPK3tmjShdA1cWZgg== X-Google-Smtp-Source: AGHT+IFAZpIoL9OsMR/FxD5E0LJENpX9rbWjHg9oewTYPeacfv7F1V3g9ucnEUC1dC9l9LrYXjRf X-Received: by 2002:a05:6870:a450:b0:229:e761:b914 with SMTP id n16-20020a056870a45000b00229e761b914mr9104136oal.49.1711398433979; Mon, 25 Mar 2024 13:27:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711398433; cv=pass; d=google.com; s=arc-20160816; b=c6kYa7IFuY2Ec7jJzGExq2FD74VenBIz9o2hFp/5OP87SFOteeUtwxYlsbW7qVid7U NyCoHc7sjTygcJoklEdVQX8nfXGZczLQDPtcdJeGUiRJLe0KrzgttVPzPvq3nujDJWTJ NMWlEhDl6nY7q42x5wxAtPX+i8uknZIBiXb2arC+FZQUB93O7H2qw/r20tkO6VgbAS6l S4IFK4q+1tZu/MdPGwywoKi4w69T8F2UprJu/OfceAy8jYF3X4eDTelrSCnX5n7MIyj8 4y/gUwDME+wTxKatj56ZMLmBxJXy2JgyhU0UHhtsTV+PMTA6AE9/1xoGDKu/0QidpDBF yE6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jkz5RpvkpxtMUKhs9zy2PKr9lZ+VZMR/FFO2sEbs/3Y=; fh=xaA7AstIbpWmCIlPlZvUg2f1EYeVn8wvbsj1hZlnoJk=; b=LLCndrdp2F/T/m87DGKSAj/i8mwoQzhw0c1Vtpnmx8s99yb2VXPVcI1VYdIWANudCc O7YrKaZS4+IzJHZemChGA/dXI6n8VrpkrZWO9sc+qpn07dK6uLCehIdUraOJRP91OGhl 9FSgB0CfSbX8sWWLD92EeT0UeANtHdiuvamCSy3/T1SJxFRvgvCKqShbCW9byT1BoGXE 7c6Exfccbqv6x/gEDtcPaCNWeZqMopyChv8S0kx2+yqUamTFqQATU1EpkN4qiIV2Aznk u2lCfBSSv+FaKVIvRMGylzNvuOKL5nA4DUBoWDCAztIHMavuoA7wP/w6cVLg1wiccq2m NJ0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UXek09c6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id k38-20020a635a66000000b005d47866f376si8019001pgm.854.2024.03.25.13.27.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 13:27:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UXek09c6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1F64CBA2494 for ; Mon, 25 Mar 2024 14:47:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D61C21A0AF0; Mon, 25 Mar 2024 11:45:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UXek09c6" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4289815664F; Mon, 25 Mar 2024 11:11:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711365061; cv=none; b=kN1aGVkHYg5HU2+M9gKRwBEts5oVM4jzI8yR1nFiveAwS6WgGICS790kkk77l6lTK28b3LBnLT+Xw9+p9hZBYOU/LroUvH5Tm6519aLYbLZzXDuSSN4BLbX68NRc/IsUEbtZmqygT+QnWpiDeUQg22+u0vENn0Ls+eJMDW6ueGM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711365061; c=relaxed/simple; bh=nM8sx42xDx95HRJ1wPccausmC0pYy6OVh8wnJGrVyxw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=t8IjNvAJfNhojIqY+o2/dbekQMsRBSoj9h9eCB7RvoAIDP10QrE+yM+ZSnzZGN9oPcWsq2uSpMBBAQliYiVfW3HhUDwpfFZzS6dO1/cTbCDBx/k13fVjmcE+1TiPLTJnv87k4BkCMokKL+UggBkPvIAeFYD7oMJ1T99PIR3UGFw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UXek09c6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3897CC433F1; Mon, 25 Mar 2024 11:10:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711365060; bh=nM8sx42xDx95HRJ1wPccausmC0pYy6OVh8wnJGrVyxw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UXek09c6cW+G+x6iB1Jv6w5GUQmW9OLkvmUdoL+mdCU1yXcp6oJfVVuTBUC3Q/Cyk NX3khylkoegm4UxLO1a0/ubyu6hdMd3PDa2CfU6mEA6W8YvYR2h2XJjTTef1YDIHYc mj7rziUUjF9kvF6abIm7GB1Lkb2WOZcIWmrns4EPMTsA3YoWh8H3yKDJzFLRQ+F2fJ O4/4Vo2/eaChhs1clAYhDWr1XbaTG0p6zqKNeO9LefMbklD84RICylMiSLMkmnU+CI C9l6dyDXhurJtzLvruf9J7nlugslgxzuiSkKw2UtQdbuwZ6hPXXVhDMvw0RAyfJQ5A 8tKoT0ncUKN/g== Date: Mon, 25 Mar 2024 11:10:55 +0000 From: Conor Dooley To: Dan Carpenter Cc: Yangyu Chen , linux-riscv@lists.infradead.org, Damien Le Moal , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , Michael Turquette , Stephen Boyd , Linus Walleij , Philipp Zabel , linux-gpio@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 05/11] riscv: Kconfig.socs: Split ARCH_CANAAN and SOC_CANAAN_K210 Message-ID: <20240325-slept-collie-9cdb65f2a94c@spud> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wGBS4mUdIPIRsN3V" Content-Disposition: inline In-Reply-To: --wGBS4mUdIPIRsN3V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 25, 2024 at 01:52:42PM +0300, Dan Carpenter wrote: > On Sat, Mar 23, 2024 at 08:12:17PM +0800, Yangyu Chen wrote: > > Since SOC_FOO should be deprecated from patch [1], and cleanup for other > > SoCs is already on the mailing list [2,3,4], we remove the use of > > SOC_CANAAN and use ARCH_CANAAN for SoCs vendored by Canaan instead from > > now on. And allows ARCH_CANAAN to be selected for other Canaan SoCs. > >=20 > > Then, since we have Canaan Kendryte K230 with MMU now, the use of > > SOC_CANAAN is no longer only referred to K210. Thus, we introduce a new > > symbol SOC_CANAAN_K210 for any conditional code or driver selection > > specific to the K210, so users will not try to build some K210-specific > > things when MMU is enabled and see it fails to boot on K210. > >=20 > > [1] https://lore.kernel.org/linux-riscv/20221121221414.109965-1-conor@k= ernel.org/ > > [2] https://lore.kernel.org/linux-riscv/20240305-praying-clad-c4fbcaa7e= d0a@spud/ > > [3] https://lore.kernel.org/linux-riscv/20240305-fled-undrilled-41dc0c4= 6bb29@spud/ > > [4] https://lore.kernel.org/linux-riscv/20240305-stress-earflap-d7ddb86= 55a4d@spud/ > >=20 > > Signed-off-by: Yangyu Chen > > --- > > arch/riscv/Kconfig.socs | 8 +++++--- > > arch/riscv/Makefile | 2 +- > > arch/riscv/configs/nommu_k210_defconfig | 3 ++- > > arch/riscv/configs/nommu_k210_sdcard_defconfig | 3 ++- > > 4 files changed, 10 insertions(+), 6 deletions(-) > >=20 > > diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs > > index 623de5f8a208..5710aee456ac 100644 > > --- a/arch/riscv/Kconfig.socs > > +++ b/arch/riscv/Kconfig.socs > > @@ -72,11 +72,13 @@ config SOC_VIRT > > This enables support for QEMU Virt Machine. > > =20 > > config ARCH_CANAAN > > - def_bool SOC_CANAAN > > + bool "Canaan Kendryte SoC" > > + help > > + This enables support for Canaan Kendryte SoC platform hardware. > > =20 > > -config SOC_CANAAN > > +config SOC_CANAAN_K210 >=20 > This breaks git bisect, right? There are references to SOC_CANAAN that > are get updated later in the patch series. You can't delete SOC_CANAAN > and leave the other references dangling. Right. I thought that I had said to resend the patch from v5 and solicit acks to take it via the soc tree [1]. Splitting it out like this means you have to introduce a symbol that shadows the original one and then switch only once all references have been removed. If this series went into 6.10, which it should, the switch would be in 6.11. I think the chances of a meaningful conflict are low with the treewide swap so it should be safe to do. 1 - https://lore.kernel.org/all/20240320-ideology-pasty-d3aea07cc519@spud/ --wGBS4mUdIPIRsN3V Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZgFbvwAKCRB4tDGHoIJi 0uSwAP95G4FiQlISuzAR9Fwa0rZx0NdUZQm9zCWUnZVjAvWBpwD/TRvaSY/ZlNhe Uuf98Lvqw1twNosFPzpGll8glXobsQ4= =Ztlu -----END PGP SIGNATURE----- --wGBS4mUdIPIRsN3V--