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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D98ADCA5FC4 for ; Fri, 2 Oct 2026 08:38:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:CC:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=m2cFnAtT5MsA9ZPOO80aU+rmS5QfQRGlkAlnRNZL7ec=; b=eZGTS6BC/gmkHJpPFPqWboRO3K sAyjkpWdZROg9v/YR9f7EoYQ4/+xOckZF9PNIcE7mxUjMJQx6UXpoSDtteLq7SC0VVbwUp1+yLEZh oAXetq6HAXeYnj2RP3/ezMN3TlvcokZmAThBKh2cbfPpEiMyHn6ju3r5sn3fdLNr1IO0R2HF06J8n 8Qb+nc/ROabB+LOwBv4qOPMPCYx8AJ4yU5b/hCE8a6qg7H0HFTcAJxv1DH0IVkbrj8F4AOLG4M/ZG gdcc8GhVmo82ufI0Lfo/8f/oqWGZ9yxECeSLMzZ1YwHTf9Az8y70hUh02Bruk6tfEpa3MlC98bez7 +f39AIBg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xCYmw-0000000B0rM-1j4M; Fri, 02 Oct 2026 08:38:42 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xCYms-0000000B0pO-3Kjr; Fri, 02 Oct 2026 08:38:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1790930324; x=1822466324; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=m2cFnAtT5MsA9ZPOO80aU+rmS5QfQRGlkAlnRNZL7ec=; b=wDzE+YNNautdQXlDKmbtaoOA3JQ6fpIWGJz5c+bLnmPkLLkJRZbSKh8m DKjz0lj5fHdVkaxEgsnQdYnp5BxUj2wjj5PPtnT65wuoEPVE1baYKOaVR UhKYd+0wHbDqM/h0cwUETLBUFfzKsRY5O+yYDhTWQTl3droGfLBEqZns2 NIa5byeXs3sRAnj225gv3gi4EY90x3M5qwXlPiVvC75nOgt3/6wHb6hQi 7wCoMB06OmIGekJ4eSmFFFNOLeYcTQtPGkaTBNVK4Aerb6yck8yIqHlX1 eY/5s/WqeRHmypr/nmnXJe3TboFmC0Fqi0U28/WKZwPx4tAexzw9d6KTG Q==; X-CSE-ConnectionGUID: IGBhx96nQiGuf1zNHIDITA== X-CSE-MsgGUID: zO5TVFTHSu2pS70GJ2FXCw== X-IronPort-AV: E=Sophos;i="6.27,136,1787036400"; d="asc'?scan'208";a="64775344" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 02 Oct 2026 01:38:41 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Fri, 2 Oct 2026 01:38:36 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58 via Frontend Transport; Fri, 2 Oct 2026 01:38:32 -0700 Date: Fri, 2 Oct 2026 09:37:12 +0100 From: Conor Dooley To: Wilken Gottwalt CC: Nguyen Minh Tien , Bjorn Andersson , Baolin Wang , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Philipp Zabel , Andre Przywara , Bastian Germann , , , , , , Subject: Re: [PATCH 3/3] riscv: dts: allwinner: d1-t113: Add the hardware spinlock Message-ID: <20261002-backroom-surcharge-ac224e920d44@wendy> References: <20260927025626.69614-1-tien.nguyenminh@embeddedlinux.blog> <20260927025626.69614-4-tien.nguyenminh@embeddedlinux.blog> <20260927132707.5f484946@posteo.net> <20260930130221.129529-1-tien.nguyenminh@embeddedlinux.blog> <20260930160541.040ccc0e@posteo.net> <20261002-matted-tux-5b4059bc305a@wendy> <20261002094816.64349979@posteo.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="DZ11gBOYyAJHJUPX" Content-Disposition: inline In-Reply-To: <20261002094816.64349979@posteo.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261002_013839_109595_90C1A161 X-CRM114-Status: GOOD ( 30.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --DZ11gBOYyAJHJUPX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 02, 2026 at 07:48:21AM +0000, Wilken Gottwalt wrote: > On Fri, 2 Oct 2026 08:32:51 +0100 > Conor Dooley wrote: >=20 > > On Wed, Sep 30, 2026 at 02:05:47PM +0000, Wilken Gottwalt wrote: > > > On Wed, 30 Sep 2026 20:02:21 +0700 > > > Nguyen Minh Tien wrote: > > >=20 > > > > Hi Wilken, > > > >=20 > > > > > Wouldn't it make more sense to add the "allwinner,sun20i-d1-hwspi= nlock" line to > > > > > the driver in the sun6i_hwspinlock_ids struct, drop > > > > > "allwinner,sun6i-a31-hwspinlock" here in the D1 device tree and u= pdate the yaml > > > > > file accordingly? > > > >=20 > > > > Thanks for looking at it. Bjorn hasn't replied yet, so I looked a b= it > > > > more at the naming. I'd like to keep the A31 fallback: it's the usu= al > > > > pattern, other blocks in this dtsi do the same (timer, I2S, LED > > > > controller), and Conor already acked the binding in 2/3. If Bjorn > > > > prefers a driver entry instead, I'm fine to change it. > > >=20 > > > Yeah, Conor was a bit quick to act here, such things happen often wit= h patchsets > > > made out of documentation/devicetrees and code. Though, the get clock= and resets > > > patch is fine. The driver could use some modernization. > >=20 > > I dunno, was I too quick to act? The patched looked correct to me, since > > it was using a fallback to a device that it appears to be compatible > > with. Had the series done what you're suggesting, my review feedback > > would have been to tell the Tien to add a fallback. >=20 > I'm just not sure how to actually do it right, because so many SoCs inclu= de that > feature. If devices share a programming model with existing devices or have a programming model that's a functional superset of existing devices (so a new optional feature etc) they should use the existing device as a fallback compatible. > That is why I asked how you would do it having more insight as a > subsystem maintainer. > It just looks incomplete to me. In the past I actually > verified it working with H2, H2+ and H3, none of them being > "allwinner,sun6i-a31-hwspinlock". Then probably there should be a patch adding all of these to the enum alongside the new d1 compatible. Cheers, Conor. --DZ11gBOYyAJHJUPX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCar9tOAAKCRB4tDGHoIJi 0iytAP4kiIuP9DCdaR3lgIGUSddG4JYzELBic1ApDlqgZ/SNEQD/RKVu9GbrGwDd rnTBgqaVMmHVFVBx47bm5hVDIO0d+wc= =9vte -----END PGP SIGNATURE----- --DZ11gBOYyAJHJUPX--