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 8A939CA0FFB for ; Wed, 27 Aug 2025 15:51:31 +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=Yonvyw6arwx9K/j0aRnK/gLYsQrk0m8h8Fj24bZWVVo=; b=Q5pTxy4MBNK6dpNRiTNTHbXCi/ ZD2b2k5PgCVK+uZ5zGNkV5DNaS1KHFyK0emJ2AMJzsm6826PZXbd2bJMPKiAxqankfoo9cYCZctDT 145TYxEFjrqQdA6FeokJZjjxTX5QMe7nSUXEcAd1SMUVMSfnnWoK6fT08JJMDN+4dQRr6Q9FKRko4 b+4KbZ49IOtXWRMG5fcHB78tg6HBiuqwq3X11GPnE1IH5qPVFvGdGsclxKWRXYywQBZsG38LHtGIG cTnwAXQaAuiiFMLt5ov33wlITe0IsAhvr8X68QR2175Z5CJlPfS8bEjSsN305LVecKqueRQhcCbBb hnbQHCEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1urIQi-0000000G10g-3VCo; Wed, 27 Aug 2025 15:51:21 +0000 Received: from fout-b7-smtp.messagingengine.com ([202.12.124.150]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1urFDa-0000000FPxD-3yiq; Wed, 27 Aug 2025 12:25:36 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id 1E8F31D001C1; Wed, 27 Aug 2025 08:25:30 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Wed, 27 Aug 2025 08:25:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jannau.net; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1756297529; x=1756383929; bh=Yonvyw6arw x9K/j0aRnK/gLYsQrk0m8h8Fj24bZWVVo=; b=fhO9QFKWc4uMzrvn11qgmZ9pQ5 t+v/nSm9aTWz8JSA2QMoXs6HlOwgfJ/H42DS1nDk+3NosbHqCT4z9Y6V8JTuV1J2 OGzmQJi56NtNBMeJ7MWHg2M/Np1Vzza2N+Pfv85oUgrFfnELvGAWp8sz61lN0518 XUKVyJcZe6PjcYjF2isYM11kSWqK8u6ygfEXO6ehdnHkxAO9tTMgqmQUP43cQatX Wq9q3MVergWjDFkDaj2TbePjnlK/1WZmK7PENaQFVJ3+wnvVSyfvIm1rDp0wHuM/ s9wMKYppkiuHJBXQ92DTO0o6SZ9U6A8LT0V8+20iQ3foEkQFZ+NH0uApoSUQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1756297529; x=1756383929; bh=Yonvyw6arwx9K/j0aRnK/gLYsQrk0m8h8Fj 24bZWVVo=; b=I/r1W69D/Ua2bm5BXK2wBOajLrzMomNKdk8LBzp8EO49mcvjLCw s182ej2tJ8QcSWmGYUtMEzThRDwe0+tCYLCUvWdAxwaqe55JOg0hYvhsnv6SfBg6 OExTKM7VwVL7Df7X1EIwIBamnUu5fATbP2XZHvLTra6IRx6qSU6qd4LtEB3ZR5rF ixMb4Uyzby4voDlGtFBdxDsIJBPHKOSlt+U+oRDZ9y52VYYMhZhTatFXTB0GGfjs UWoP9XaabWAb+nJr0uUsdb3mls7gT7S8bfbiBkV16UWdN+xbnkLAJAkJOTTJN9EQ 8hCjx1dq4Dx9i4D/ksR2ZP+YUh3JsyySpoQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddujeekudehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkfhggtggujgesthdtredttddtjeenucfhrhhomheplfgrnhhnvgcu ifhruhhnrghuuceojhesjhgrnhhnrghurdhnvghtqeenucggtffrrghtthgvrhhnpefgvd ffveelgedujeeffeehheekheelheefgfejffeftedugeethfeuudefheefteenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjsehjrghnnhgruh drnhgvthdpnhgspghrtghpthhtohepvdefpdhmohguvgepshhmthhpohhuthdprhgtphht thhopehkrhiikheskhgvrhhnvghlrdhorhhgpdhrtghpthhtohepshhvvghnsehkvghrnh gvlhdrohhrghdprhgtphhtthhopehtohifihhntghhvghnmhhisehgmhgrihhlrdgtohhm pdhrtghpthhtoheprghlhihsshgrsehrohhsvghniiifvghighdrihhopdhrtghpthhtoh epnhgvrghlsehgohhmphgrrdguvghvpdhrtghpthhtohepjhgrshhsihhsihhnghhhsghr rghrsehgmhgrihhlrdgtohhmpdhrtghpthhtoheprhhosghhsehkvghrnhgvlhdrohhrgh dprhgtphhtthhopehkrhiikhdoughtsehkvghrnhgvlhdrohhrghdprhgtphhtthhopegt ohhnohhrodgutheskhgvrhhnvghlrdhorhhg X-ME-Proxy: Feedback-ID: i47b949f6:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 27 Aug 2025 08:25:27 -0400 (EDT) Date: Wed, 27 Aug 2025 14:25:25 +0200 From: Janne Grunau To: Krzysztof Kozlowski Cc: Sven Peter , Nick Chan , Alyssa Rosenzweig , Neal Gompa , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Hector Martin , Joerg Roedel , Will Deacon , Robin Murphy , Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, iommu@lists.linux.dev, linux-nvme@lists.infradead.org Subject: Re: [PATCH v2 6/9] dt-bindings: nvme: apple,nvme-ans: Add Apple A11 Message-ID: <20250827122525.GA204299@robin.jannau.net> References: <20250818-t8015-nvme-v2-0-65648cd189e0@gmail.com> <20250818-t8015-nvme-v2-6-65648cd189e0@gmail.com> <20250819-polite-papaya-catfish-1a9d1a@kuoka> <8ac418ae-7ff0-4d5c-9f11-c24e36618ac1@kernel.org> <8279536d-c4f4-477a-9823-3e7b452c3c33@kernel.org> <12ab93b7-1fc2-4ce0-926e-c8141cfe81bf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <12ab93b7-1fc2-4ce0-926e-c8141cfe81bf@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250827_052535_335783_F25BC9B5 X-CRM114-Status: GOOD ( 28.30 ) 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 On Thu, Aug 21, 2025 at 03:09:42PM +0200, Krzysztof Kozlowski wrote: > On 21/08/2025 12:25, Sven Peter wrote: > > > > 1) For situations like this one where the generic one just doesn't make > > any sense we deprecate "apple,nvme-ans2" in the binding and use > > "apple,t8103-nvme-ans2" as the fallback instead, i.e. just > > "apple,t8103-nvme-ans2" for M1, "apple,t6000-nvme-ans2", > > "apple,t8103-nvme-ans2" for M1 Pro, and just "apple,t8015-nvme-ans2" for > > A11. > > > > We keep the generic one in the driver for now but also add > > "apple,t8103-nvme-ans2". We then remove the generic one from all > > upstream DTS files but keep it inside the downstream files we ship to > > users for now to avoid pain with kernel upgrades/downgrades. > > A year or two from now we can then delete the deprecated generic > > compatibles everywhere. This all has to be synced with OpenBSD and > > u-boot as well since both also use these bindings. > > It's gonna be rather painful but this would clean up the entire mess. > > > > > > 2) We keep using the ones that are already upstream and just accept that > > the situation is a mess and add comment above all the bindings that we > > messed up and that this should not be used as pattern. > > In this case that means it'll just be "apple,t8015-nvme-ans2" for A11 > > without any fallback and we keep everything else the way it is. > > > > I prefer option (2) but if you really want to get rid of all this mess > > > I also prefer option (2). That's the least disruptive option for users > and inconsistency in bindings naming is just inconsistency, no big deal. > You just need to remember not to grow the old items/pattern with generic > compatible. This sounds to me like a mix of option 1) and 2). All devices / SoCs already upstream will use the fixed current compatibles and thus are following option 2) New SoCs will have to use compatible = "apple,t6020-nvme-ans2", "apple,t8103-nvme-ans2"; using t6020 as example even though they will be using the same driver code as "apple,nvme-ans2". Using t6020 as an example I planned to submit today. This will require adding the new fallback "apple,t8103-nvme-ans2" compatible string to the driver. Asking for clarification as I could image such driver changes will raise questions from the driver maintainers. Is there a way do document/annotate the generic compatibles as deprecated / "do not use" for new devices? Thanks Janne