Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp466189lqg; Thu, 11 Apr 2024 08:08:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU89lfAvqFMJrhovOFaiQR2wAPXXnSRFokwv/fdF11BhBQqihWBLUV5yFnOA0xC6FcH3e7qEw4dNg1+rAKqo7YeUGT7R6kZ4dLyd1QDog== X-Google-Smtp-Source: AGHT+IFGw6ChjURDFRDylGiQKdmk9dmVryqXBvhB253O1NAmlfrIu0+QeQUPg9LVoAO78T0HuRBq X-Received: by 2002:a05:6808:6083:b0:3c5:ed76:67c7 with SMTP id de3-20020a056808608300b003c5ed7667c7mr6714977oib.14.1712848124041; Thu, 11 Apr 2024 08:08:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712848124; cv=pass; d=google.com; s=arc-20160816; b=Psje1msgsuDB0mX6mxRttYYBvkZ2Lsd55LdE0zF7wPzsS3eGS1zIgOQUBXgMFvf5QA VydPg9f7y/9j4evjdyHTHy7Udtwp4ias1ndNSwvLCJ49s2Xf1r7R7wA7sp67GI24Udjl oBv6Un4NuOhKgJ/zrhcIlqaudIYjqE4c/zMn3HWBqtHsFvkjA3qFIm+GYXrXaovCBd7X MFAM0pLnCR+nezMBeoIFy/AaRNyccz1DPKgVRErhpQFtM9QYAJbHJFG/lDtDsliqLTCo Y5BkhOVZJ0vzo4Clq1tNzrj08moFFTIRFuJppzR7301a3iJ7YbK0jDrWDU5sFpSHfnPl 2pFw== 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=vQppr6YkppdhL8RfxjMo+S1VY+4anVavcdS6OArVZ+k=; fh=K8x0ABBO3UXoHoITkkqCgab3CgUNajK+m2ThH8zu9ZY=; b=EllUNyBD7IVf/fogvw4E0HIdN17Bh9EGh1Kf8soHDqcR67AjJdMG33h6ZxCdIr39ZE +i4DsqHkxhR0NtM01TOBAQHu39G+fNkdtRJn6tQS85Fd+fk684NQRZEG+z1swo6y2GOm Vf1zcXfrV+WUV6f0PsKGnCBz3EyOZGdhYoX/mCxHmvEvVZoZumBt9jM0+0QWjfsOkiDn 2DvjbRGZGAYXdIXzJvSdpTT55F7ijFHTYZo/0+wZlmWdNAMRHS8+nal1sd+XgCtvfOw/ 8WDalO6GnW5k0XHbXtYtmvg5mN87W51XswBpNP2egIzGBogoYcaVjH6mt6XbhSMG7rO3 LdCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nHECe3j0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-140716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140716-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t26-20020a9f389a000000b007e82755576dsi115913uaf.61.2024.04.11.08.08.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:08:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nHECe3j0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-140716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140716-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7DAA81C23481 for ; Thu, 11 Apr 2024 15:07:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 684B914280; Thu, 11 Apr 2024 15:07:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nHECe3j0" 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 88320BE7F; Thu, 11 Apr 2024 15:07:43 +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=1712848063; cv=none; b=NhQW8v4KcP4Zld4zxD9p5RohkAWDWYfnTqCobOni3MKXc3mKaLzY2xJ2hYCXHIr3H4A/lpN0EZflbevdU2o6DcRF93klyTxMxFTmTrH/2PPZKQt+2umEyLG3V/ufgAJRw0H2bxUU9HvZ9pEd2EYl2PesPkSu4dW9l5yhw/0g7z0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712848063; c=relaxed/simple; bh=VpEv0RUqg4n89BJQGyRGVxP1qQqMYa3vM+hZex0YOeo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aHkXyhtIieYdkAWdEu/cppoYDeQpUYdInWPT5r7axZLiggrHthQnr0HB+wouxui8sSdUMor85oUnsvdbAQnWhqIaWM1Cu8mrMIaxzmWvv+nZF3tRZPNfdw5cmUSe8xS1Dp1uDPyLmU3N4V5uqabnqV/clTIDv7YujaifYbjEqb0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nHECe3j0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28196C113CE; Thu, 11 Apr 2024 15:07:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712848063; bh=VpEv0RUqg4n89BJQGyRGVxP1qQqMYa3vM+hZex0YOeo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nHECe3j0C4p8Yt0BBy+MOlPPQI7mguC51Jijc2UlAycDcChcV/t9igE5resm1hJXY 816kOdVjm6KgP1Qz037HsCGtuoiufPuELVORLVNkTEBFfUZpUpVG6X0dO/mlkNKdWS 2VkzumDlVEmCc37le8ZG1yO+mnupDjo64y1l8+3y3/RCuGENK5svNPCRyUx7HHDkHq B6nOJPZdLvPUOKhUihYKReckuI+Z7Ha/Nm9Hxba7j4cnH3sOtHEQfkBqBhpOn64bbm aNnYN89FKxyWIuG/usB1L8Ltqr0neiZ/XCVJBkLiA83ZhWu45xXF5myJnrZywXmKti U1xCeB5lHN58w== Date: Thu, 11 Apr 2024 16:07:37 +0100 From: Conor Dooley To: AngeloGioacchino Del Regno Cc: linux-scsi@vger.kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, peter.wang@mediatek.com, chu.stanley@gmail.com, jejb@linux.ibm.com, martin.petersen@oracle.com, lgirdwood@gmail.com, broonie@kernel.org, matthias.bgg@gmail.com, stanley.chu@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 5/8] dt-bindings: ufs: mediatek,ufs: Document MT8192 compatible with MT8183 Message-ID: <20240411-owl-euphemism-955ca43b5190@spud> References: <20240411114300.169055-1-angelogioacchino.delregno@collabora.com> <20240411114300.169055-6-angelogioacchino.delregno@collabora.com> 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="w6qAEWdCVN3uindW" Content-Disposition: inline In-Reply-To: <20240411114300.169055-6-angelogioacchino.delregno@collabora.com> --w6qAEWdCVN3uindW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 11, 2024 at 01:42:57PM +0200, AngeloGioacchino Del Regno wrote: > The MT8192 UFS controller is compatible with the MT8183 one: > document this by allowing to assign both compatible strings > "mediatek,mt8192-ufshci", "mediatek,mt8183-ufshci" to the UFSHCI node. >=20 > In preparation for adding MT8195 to the mix, the MT8192 compatible > was added as enum instead of const. >=20 > Signed-off-by: AngeloGioacchino Del Regno > --- > .../devicetree/bindings/ufs/mediatek,ufs.yaml | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml b/Do= cumentation/devicetree/bindings/ufs/mediatek,ufs.yaml > index 32fd535a514a..adcd13023866 100644 > --- a/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml > +++ b/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml > @@ -14,9 +14,15 @@ allOf: > =20 > properties: > compatible: > - enum: > - - mediatek,mt8183-ufshci > - - mediatek,mt8192-ufshci > + oneOf: > + - items: > + - enum: > + - mediatek,mt8183-ufshci > + - mediatek,mt8192-ufshci > + - items: > + - enum: > + - mediatek,mt8192-ufshci > + - const: mediatek,mt8183-ufshci It's a bit more distruptive since you'll have to modify a dts, but why permit both of these ways of describing the mt8192? Could we drop it =66rom the original enum and no longer allow it in isolation? There shouldn't be any compatibility concerns with doing so. --w6qAEWdCVN3uindW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZhf8tQAKCRB4tDGHoIJi 0pr4AP9BKNcugGYlb1HWoH8V4MvvkEcaVh8Xm42KMyQkAxz+IgD/SPrydC7EpjyO fuZgi9n2btcClNJjUcV7Nkr03VPk6Aw= =PCb6 -----END PGP SIGNATURE----- --w6qAEWdCVN3uindW--