Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1258281rbb; Mon, 26 Feb 2024 04:06:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXDn5YkGUiLvCL/E8dFm539uTLkrrUh4hfbWIQyJHjCZB4WfqEtTuJSQbapwAxwX+GaB8FstlBinbv+IE6HBbm+mdLSC0SfiKPumQdO/A== X-Google-Smtp-Source: AGHT+IE3DNuM9o4D+2yvjvypM1V0hdPfWgnqQQCM4lnHTGOm7hgQVr3VtBK2KYmlxgIF0vnMmgJB X-Received: by 2002:a17:90a:6e4c:b0:29a:644c:85ad with SMTP id s12-20020a17090a6e4c00b0029a644c85admr3944477pjm.42.1708949181939; Mon, 26 Feb 2024 04:06:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708949181; cv=pass; d=google.com; s=arc-20160816; b=aqrWuvZpECGfTOs0tw242gIvA/FjqTxQaVLNIVf7cVsjj/6lBVRkZHNSrxWCwtJjn6 vtvU5eUg+qTsX4SlzK9t0Y5Djy5oIZIX+BZkQGT3AAyeh+WONCM8RiOkemVWApxo8ter O/AOIhZIJl9fJTUx8f5MUYb64lIBAb8WSEWj8mWzvUhJs8fg56uwprfylxUz2aILaUy2 Btlw9J85jXpe8ki2imtQ6p+idfL1BtZAN7pT/7HiGDl5cDRzwULKqyI4q5Wuc3nCgZVU Qu6nTJFgdOoh81IxYvVsDi+nTzLXN1G9bVWgY72L4nOZrrL08BMxydW5T+5RYPQ7AcWD TtuA== 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=qqZ6DmA80Aod9TEDqGVz8wftCEusR0usP/s9xFJiJOc=; fh=RwF7I+OjZVBf9E2kaXOymZEbmxSsvZBoabWnTbKnJbA=; b=Tj1u+J1gVS2KDwUCKpsHawdupV12svKMwL7EBJr+JFS9MW+ygosZarriSJLtnMx1Ov 57okfXs0aUojLGU0KD+ntSEjcJgjNP8KCHTLCsSWsYb82l9HiPob3Q0hZbKSiXXHSRkX PVCwuSWbz78hy0dlAgjEw0uXCVCbDyJq11FyjYJUm6sK9MwOe4CklmKaUNMGMKksJn69 XeW/fHAwG/DW9DbEeiFH0sM5WXWp5SvgyK2+h/I5oSl+UdHivxsiLYHVsJLdYGDP+U5+ Cw+qlViNSMMx1qibX0R/tpUoHn/ClGFerWxjdIfXuVsu4oYjRzskgPjnDMwrzk4OjBmM mnDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=yc8jOMi2; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-81314-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81314-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t184-20020a6381c1000000b005dc9bea610esi3583745pgd.789.2024.02.26.04.06.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 04:06:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81314-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=yc8jOMi2; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-81314-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81314-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4E4BC287D64 for ; Mon, 26 Feb 2024 11:57:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E965F5B043; Mon, 26 Feb 2024 11:57:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="yc8jOMi2" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 B41761DA5F; Mon, 26 Feb 2024 11:57:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708948638; cv=none; b=ZoQqFN7kRmuOLasQCSt17qb8TR2cLX0LpsmSqa+TcB+bZ+yM3H10JoSWnU990DqaoMfazzYrEFQABAkhU0FpWptR2OI70DfivhPfxtnov/GoVg5wA1BlVLElc8bPSp/GrY5OEvjuBW9JAqcRuzAiFGCBHPqxA1brrtrgFmDOJao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708948638; c=relaxed/simple; bh=LXxr0oCyAyi941LBQn7wpQyHhte7aRcvaiULQ0755YM=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=n1ZByZi92Y6SsUjLOwU5CA4EVKwbK9OP3MutEUa+ekhq1sIR2RUAIPWtmydV2sNbT7Hur8EZLXXp9swsHRFVE0sGpJrIE81igy6u592nKb/dV5pOnYVEax9b91x6NOFsb3nWwyYx/62c10X7N8ljaGIo1lNKdnKqYwseOtvo6Zk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=yc8jOMi2; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1708948635; x=1740484635; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=LXxr0oCyAyi941LBQn7wpQyHhte7aRcvaiULQ0755YM=; b=yc8jOMi2NAlTLGpqikrG98GznAWohFNaEJpv6zoNkRPneZdUPx6IWNwj QKIivt6HMczgUkKVpcYt4hgUeXWaYyH/ezFeZCszl9yB2aGLO8k08NyB1 lbJLOftKCYH7cmMJ5ESDgT3XE+zyRwpAVMgcVOu2NB3DwLRFYerQ4aCpq QRI39ga7Mh3SHZvGOhd6rMvqCfAZG6xcqGlyWzi78Qs5eJ+V2sv2Um5oB zM3bZuqZS6McEX4RxqY4PU5mtP+jvS5DTSnWI6l741xuXO7645makrR6c L9Md/xOlNiDTrsPD+4ZbrsCuA2xcA8jJQB7Ax7ktQ1Pl3EvODes53/DdB w==; X-CSE-ConnectionGUID: Szb1mO22RbmH0OMhJ27Cfw== X-CSE-MsgGUID: vdi+E3YdQS6QNTLBV3VCmQ== X-IronPort-AV: E=Sophos;i="6.06,185,1705388400"; d="asc'?scan'208";a="184093811" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 26 Feb 2024 04:57:14 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 26 Feb 2024 04:57:02 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Mon, 26 Feb 2024 04:56:59 -0700 Date: Mon, 26 Feb 2024 11:56:16 +0000 From: Conor Dooley To: =?iso-8859-1?Q?Th=E9o?= Lebrun CC: Conor Dooley , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Roger Quadros , Peter Chen , Pawel Laszczak , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Thomas Petazzoni , =?iso-8859-1?Q?Gr=E9gory?= Clement , Kevin Hilman , Alan Stern , , , , Subject: Re: [PATCH v3 1/8] dt-bindings: usb: ti,j721e-usb: drop useless compatible list Message-ID: <20240226-portable-rockslide-e501667a0d9a@wendy> References: <20240223-j7200-usb-suspend-v3-0-b41c9893a130@bootlin.com> <20240223-j7200-usb-suspend-v3-1-b41c9893a130@bootlin.com> <20240223-clarity-variably-206b01b7276a@spud> 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="y/81symxI7pz60lC" Content-Disposition: inline In-Reply-To: --y/81symxI7pz60lC Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 26, 2024 at 11:33:06AM +0100, Th=E9o Lebrun wrote: > Hello Conor, >=20 > On Fri Feb 23, 2024 at 7:12 PM CET, Conor Dooley wrote: > > On Fri, Feb 23, 2024 at 05:05:25PM +0100, Th=E9o Lebrun wrote: > > > Compatible can be A or B, not A or B or A+B. Remove last option. > > > A=3Dti,j721e-usb and B=3Dti,am64-usb. > > >=20 > > > Signed-off-by: Th=E9o Lebrun > > > --- > > > Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml | 9 +++------ > > > 1 file changed, 3 insertions(+), 6 deletions(-) > > >=20 > > > diff --git a/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml = b/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml > > > index 95ff9791baea..949f45eb45c2 100644 > > > --- a/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml > > > +++ b/Documentation/devicetree/bindings/usb/ti,j721e-usb.yaml > > > @@ -11,12 +11,9 @@ maintainers: > > > =20 > > > properties: > > > compatible: > > > - oneOf: > > > - - const: ti,j721e-usb > > > - - const: ti,am64-usb > > > - - items: > > > - - const: ti,j721e-usb > > > - - const: ti,am64-usb > > > > Correct, this makes no sense. The devices seem to be compatible though, > > so I would expect this to actually be: > > oneOf: > > - const: ti,j721e-usb > > - items: > > - const: ti,am64-usb > > - const: ti,j721e-usb >=20 > I need your help to grasp what that change is supposed to express? Would > you mind turning it into english sentences? > A=3Dti,j721e-usb and B=3Dti,am64-usb. My understanding of your proposal is > that a device can either be compat with A or B. But B is compatible > with A so you express it as a list of items. If B is compat with A then > A is compat with B. Does the order of items matter? The two devices are compatible with each other, based on an inspection of the driver and the existing "A+B" setup. If this was a newly submitted binding, "B" would not get approved because "A+B" allows support without software changes and all that jazz. Your patch says that allowing "A", "B" and "A+B" makes no sense and you suggest removing "A+B". I am agreeing that it makes no sense to allow all 3 of these situations. What I also noticed is other problems with the binding. What should have been "A+B" is actually documented as "B+A", but that doesn't make sense when the originally supported device is "A". Therefore my suggestion was to only allow "A" and "A+B", which is what we would (hopefully) tell you to do were you submitting the am64 support as a new patch today. > I've not applied your proposal to check for dtbs_check but I'd guess it > would throw warnings for the single existing upstream DTSI (as of > v6.8-rc6) that uses "ti,am64-usb"? See: > arch/arm64/boot/dts/ti/k3-am64-main.dtsi. Yeah, it would but it's not as if that cannot be changed. There's no concerns here about backwards compatibility here, right? --y/81symxI7pz60lC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZdx8YAAKCRB4tDGHoIJi 0sCAAPwLF+i1FiXIYJ+rJDn2P1nOhyEPNbA2O5VrdxWhaSS8qgEA0qc5dIt6gFNG 4p7KsxNzS7FXx8EctGxE6ZdwAUiC5Qo= =QOfZ -----END PGP SIGNATURE----- --y/81symxI7pz60lC--