Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp120467lqi; Wed, 6 Mar 2024 11:45:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWVnBI2YXH+HnTC82V2wvdIE5KQosR2wrpWsqOE3PQysgHbFXIqyij+KIIxDgbt7ZaBVVX5uDnTJLeqxzwXDMk16g7Ja0zWwrJebf+9PA== X-Google-Smtp-Source: AGHT+IEuakPQDueeVyjB89HnRuqIh0ORkrt7v3YBMqcJynN8Tgf0WWguYnXvEQfkzPZG8ung0zDW X-Received: by 2002:a05:6a00:b41:b0:6e5:30b8:d46b with SMTP id p1-20020a056a000b4100b006e530b8d46bmr18566025pfo.18.1709754345536; Wed, 06 Mar 2024 11:45:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709754345; cv=pass; d=google.com; s=arc-20160816; b=jjdSiW9vTyJAeV2qF/3dNMCM5IWkxbqtkyG2IGOPcPy/yv352clJdzCuwsKfLjRnop dLD1djSj9YDwc5UINbVzHUq+fecKFOF4R1IbvNQBBBlpwJvPtR+NVq0Pgjd95bR8g3MB QRSZN9eZckWe/4z0B5+lCemWjfvoYsuArwUSyJiW7qjTN00q1g71lvIT3BY6I0Pxen9K pGHW5/YeMMPlh2louy8t+SpxMHdyeNlU7uenqWpsJYaLUHwLN05hVROnqj186HSXadN7 TVg+ZivPlJ5i+S8KnTOkhhcVxe9WeazfpBsFrTBP6aINPQKPWAcyfFMhF8Vol14jdFD0 8Tbg== 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=0ZOIMpYSrB0ZHvN6X7vIugg/WdJbBx9XW2syAjZrMYM=; fh=o7G789Y7txUmCMPoCI8T1NtiVfSh4OslPl+LjoO8GEM=; b=O6El29UGvtSTj9AMrQgJJm7ORXiYqD30uRaDb7liF1H5ujZnLa6OBPfntd+8nO34Z9 3B1emi9Tia3wkoyqdFESkuqFB+SjdarYJkmhk9ClYHIhBMAVUTqLtxvZI06nLnvBbHdy xVyoy7COKtLqFBXRv+LcVKN91ZPDm9U3xnk0P9N7yQIMO0+RseEG1hV/PsgTn9uN63qS RxJfloUUHTpiZB74oxbrbHo2z/MtPcNANiSkm4CMDZvIVa66L36Pf5suggr4wDg57CT8 wtC/+XB2MfpGoO/bUm44zIR5y25IdCVltoc5FL5HY4zTukzkUEzYxL49R/e1YtyvqZBZ Xlwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DEETAeIJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94501-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94501-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n2-20020a632702000000b005dc96170131si12522303pgn.766.2024.03.06.11.45.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 11:45:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94501-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=@kernel.org header.s=k20201202 header.b=DEETAeIJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94501-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94501-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 39C822812E1 for ; Wed, 6 Mar 2024 19:45:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2356F14038F; Wed, 6 Mar 2024 19:45:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DEETAeIJ" 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 4080913F00A; Wed, 6 Mar 2024 19:45:40 +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=1709754340; cv=none; b=P2C4CjvkAC/piWvIemx2Qb5qnybROSUIn4+rdrTwwzvG1hhTHux6o1flsKmixJqHcnX1pfoq5PQ8wrw+aAn2zrTKk4tcmYsBK78Cdo5dA9Uv1XxjQyDEfHpt1xutmG9AGQOipBv7veyggCrqjBjIv30dPQzgeVGCEiKWH3m51yk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709754340; c=relaxed/simple; bh=5G1J0BhLc6CdOxwigI/ctXSY559sZ3EGEXyuCpYSgf4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GAPKo8INt50ZGKglurPjWLo6ZfOP8pd4wszfalPDpOG1Wnraz48Dbz4qFIpj5AIhcENaJ83BW1Hxm5o9GhsXaoJZOjtdChAxMVRIK7cs5oih3633kPAlJvzgm2rYuRL79bGTj/bhx0CX6ZjPkdluTn6JZCkWRycaZ4DgIY5LFqY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DEETAeIJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0CC3C433C7; Wed, 6 Mar 2024 19:45:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709754340; bh=5G1J0BhLc6CdOxwigI/ctXSY559sZ3EGEXyuCpYSgf4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DEETAeIJJSkUQUzPDySpQ9hhYT2x0WxKI6ArF+euMpwJjwUqo2ESLn0WA22TE5j7K R36pHhm1XakM0l0MMl8oJg+XQV/ZMguoi4lKGDzUDb3GGj3HVakhMYnTO3NC6iGvGr 5Uua+soh+cdMV1VIPtwOX1TIf6lXef/7TWhr8/6D9qmif+9JMIEbZ2eZ5m+AprvbOc vCaQjDrZ8L+ZelJA9gr/DIso2OwLiSH1SoPWKvBWeX7FIqhM7uOaVUm2UxjAPQEDqq h7PxMikDG1u9yjzzjHrkOGmf47FsEmNCbxf3ItXW7YBIG87bp1fgOqUgFVzQBlFcBp rcG8N5FNlw1vw== Date: Wed, 6 Mar 2024 19:45:34 +0000 From: Conor Dooley To: Frank Li Cc: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Shengjiu Wang , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 3/4] ASoC: dt-bindings: fsl-sai: allow only one dma-names Message-ID: <20240306-petticoat-womb-a61cad7d788d@spud> References: <20240305-asrc_8qxp-v4-0-c61b98046591@nxp.com> <20240305-asrc_8qxp-v4-3-c61b98046591@nxp.com> <20240306-pebble-grope-88fdaa95a87c@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="trxU1T+09Y67XLwE" Content-Disposition: inline In-Reply-To: --trxU1T+09Y67XLwE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 06, 2024 at 02:25:53PM -0500, Frank Li wrote: > On Wed, Mar 06, 2024 at 06:45:13PM +0000, Conor Dooley wrote: > > On Tue, Mar 05, 2024 at 12:33:04PM -0500, Frank Li wrote: > > > Some sai only connect one direction dma (rx/tx) in SOC. For example: > > > imx8qxp sai5 only connect tx dma channel. So allow only one "rx" or "= tx" > > > for dma-names. > > >=20 > > > Remove description under dmas because no user use index to get dma ch= annel. > > > All user use 'dma-names' to get correct dma channel. dma-names alread= y in > > > 'required' list. > >=20 > > Acked-by: Conor Dooley > >=20 > > > Signed-off-by: Frank Li > > > --- > > > Documentation/devicetree/bindings/sound/fsl,sai.yaml | 13 ++++++----= --- > > > 1 file changed, 6 insertions(+), 7 deletions(-) > > >=20 > > > diff --git a/Documentation/devicetree/bindings/sound/fsl,sai.yaml b/D= ocumentation/devicetree/bindings/sound/fsl,sai.yaml > > > index 2456d958adeef..6f551c68d33db 100644 > > > --- a/Documentation/devicetree/bindings/sound/fsl,sai.yaml > > > +++ b/Documentation/devicetree/bindings/sound/fsl,sai.yaml > > > @@ -81,15 +81,14 @@ properties: > > > =20 > > > dmas: > > > minItems: 1 > > > - items: > > > - - description: DMA controller phandle and request line for RX > > > - - description: DMA controller phandle and request line for TX > > > + maxItems: 2 > > > =20 > > > dma-names: > > > - minItems: 1 > > > - items: > > > - - const: rx > > > - - const: tx > > > + oneOf: > > > + - items: > > > + - const: rx > > > + - const: tx > > > + - enum: [ rx, tx ] > >=20 > > I'm not entirely sure if this was Rob's suggestion, I got the impression > > he was suggesting that in the two items case we'd not care about the > > order. But while I think this is different to that suggestion it's also > > not wrong. >=20 > I log this at cover-letter. b4 can't support write change log at every > patch yet. Rob's suggest was not work. dt-binding check complain too long > if there are two dma-names =3D "rx", "tx".=20 Yeh, that is what happens if you just have dma-names: enum: [ rx, tx ] since that only allows one entry. Take a look at st,stm32-uart.yaml instead, for example. --trxU1T+09Y67XLwE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZejH3gAKCRB4tDGHoIJi 0o5ZAQC0bEJLk2rMmNg1h6oK0puBl8tnJqZX4qRtU8t6hz4KlAEAmuy73tHPP4vO iIc7yezGXRzST2Kg4QHm/imuO9iUSAs= =u4Ht -----END PGP SIGNATURE----- --trxU1T+09Y67XLwE--