Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp155152lqi; Wed, 6 Mar 2024 12:55:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUqMY1mYXzER7e6YukLX3iQcXphZViJMTHHVDp7k8IfTfwKv+9R9jVpgAFMSCY7lo2VLtztvG5KcDVDeB5Oq0puDSxw6SOWQmGvj0U+WQ== X-Google-Smtp-Source: AGHT+IGoo5WB8Z50v6GmBfJZPc6zqMapuNj6h27iSIkJIHGr4T3z+LsS9T6uKpRKHaeqMecvXVoA X-Received: by 2002:a17:90a:6c96:b0:29b:2fc9:197a with SMTP id y22-20020a17090a6c9600b0029b2fc9197amr12690584pjj.21.1709758534112; Wed, 06 Mar 2024 12:55:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709758534; cv=pass; d=google.com; s=arc-20160816; b=nMQoDCYcrN8pGx0RCzVhBxTNWDSnPz9Jj9XnvCli6RtKIpvzZgFN02QZuHqhCbzO6d p4PN4AWoOGeFeqMk16pb0YkStj9k5sxkk8ZQDZ0eEzqn19picAjAM6MPrH8Wh2lngu5M HcgxAJGIxzrCU/WzcpPQjUg4Gd6v9+JGV+pFF1tz2bB+fBHUFNFUYxJL0OQViUgGGZ7Y shR7KtFKdceHzmBj6qA343q/faym9ZO38DWGmM1tr6GxRafidGzpprHf9fAAIqOnLUfh EWlOC/RUdDc0qL0uCJQzxnFIiiP+oTn5KRqb7rpVy9AgAfsS7JoySukkCWnNCRUXt2bK ZUYQ== 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=aH2b6aPD8ueVGWPyfEdHp2EtSJaPKQAIEE9QbZhjNIc=; fh=UtAVvy+3Fka9ZAPPobNEYRasWREq1ZHEQAIvNNsg/As=; b=wGiKDRAP263aicGrXPS+9ljWXXRG+GAclX3bW+UJQ9vDMwMgcn5NlwsdpCyXTuamJQ +PSMdj3f9Jln6CZaBXyEkSQa9KB3YjxGx5gL34Pf7UqyT2UYA3LNNO5rxcrJYSGiMjQ4 SswiyWA1fHWbKakZuCmU0V9ADvpNSJ33CkSuLvLldQ1ahQGyFyu7oWCVrHU3+hrgMQ6a TmphPyX/kw4YXi3LlilPDfzJEQ2Z+k/W3OezajixHD5yFCrkS3SzsmGwr/qzDGXEqPjY nDtXRZMyG3/a7oV++/8ikUhQzxkVKlLPpabDMjP4bMa5QwBXGmOkqJbwj8hsgWXOArO9 a9AQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mXF5lxxx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94573-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94573-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 ei9-20020a17090ae54900b00298c3b85759si261377pjb.146.2024.03.06.12.55.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 12:55:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94573-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=mXF5lxxx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94573-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94573-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 B7BB7282C20 for ; Wed, 6 Mar 2024 20:55:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 367A4175A9; Wed, 6 Mar 2024 20:55:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mXF5lxxx" 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 4D8F2CA4E; Wed, 6 Mar 2024 20:55:27 +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=1709758527; cv=none; b=irlIoZrAiADSY1xmm7xOGiW0Q5u2kOgGmdSYXROWQYev7F0yIOqV6YAmRtv9oOUMb1Jw9jxERvJ6jC27mYNflLTJTrkqpPjxVfLtpjSnlJu74Nk70rew8rZkg17Ui+lJjdRqTEdKBjSUzPfgZ4zNCtpsLG919AEppA4PlXIDFnY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709758527; c=relaxed/simple; bh=8wpIf1u7ZRpALOfHZ4AX6o9s1PVu3WXuDX1nZ0s4XSc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kVkjC148brJfJ2RSHsKVr7SalvW2/OjuQFQ7cUsmSd4nHICeK2FM6N4cz8ufufQYLBCgB6BPsIBf2Tqe6vtfhvOg621qifrLNl3DJF058Kp6n+GaJIQJLm++BSOGL6w3zv6YhxR0e/jwJsHYHMoWo7MqRv9iOyNxpGLn5schycE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mXF5lxxx; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9114C433F1; Wed, 6 Mar 2024 20:55:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709758526; bh=8wpIf1u7ZRpALOfHZ4AX6o9s1PVu3WXuDX1nZ0s4XSc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mXF5lxxx+5t7+86g9lXRI/nNc8B4ygRS3Pb/kEY2lndTQUNMt4NdY7rUvEMCXmXQl vxmyt4AOGSH2J4BP3G5owS+NwYYzYVNAi7VZYYC94rGw+DYdQFHddWlgmPeVdHI8e5 TO7VYXRFl7FeITijsC6W/rxrVtrmpB3/n7h3O0uJGKcoF7CRFZnbC5m2BZD+1zwpuh zt5ZPUwn/ak239yElwk+gNSlGGsBVgGtYpsdxO76K4qrOOJlgOJrZVidGFIn2F+MVm w0zqPA++4MN6nCQbqOK5WuxVp7d/V16f5iYor8Lvr8kR2Chbaj4VvihYTvX3vsDAx6 hUYzM5k4d/n0Q== Date: Wed, 6 Mar 2024 14:55:24 -0600 From: Rob Herring To: Frank Li Cc: Conor Dooley , Liam Girdwood , Mark Brown , 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: <20240306205524.GB587561-robh@kernel.org> 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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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. > > > > > > Remove description under dmas because no user use index to get dma channel. > > > All user use 'dma-names' to get correct dma channel. dma-names already in > > > 'required' list. > > > > Acked-by: Conor Dooley > > > > > Signed-off-by: Frank Li > > > --- > > > Documentation/devicetree/bindings/sound/fsl,sai.yaml | 13 ++++++------- > > > 1 file changed, 6 insertions(+), 7 deletions(-) > > > > > > diff --git a/Documentation/devicetree/bindings/sound/fsl,sai.yaml b/Documentation/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: > > > > > > dmas: > > > minItems: 1 > > > - items: > > > - - description: DMA controller phandle and request line for RX > > > - - description: DMA controller phandle and request line for TX > > > + maxItems: 2 > > > > > > dma-names: > > > - minItems: 1 > > > - items: > > > - - const: rx > > > - - const: tx > > > + oneOf: > > > + - items: > > > + - const: rx > > > + - const: tx > > > + - enum: [ rx, tx ] > > > > 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. > > I log this at cover-letter. b4 can't support write change log at every > patch yet. It never will (probably). That's because it doesn't need to. You can just do it with git. When you edit the commit message, then after the tags, Add '---' and put whatever you want after. That works as long as the commit is applied from a patch as 'git am' will drop it. > Rob's suggest was not work. dt-binding check complain too long > if there are two dma-names = "rx", "tx". So I'm wrong or you didn't have it correct? No way to tell with your explanation. Let me give you the exact schema: dma-names: minItems: 1 items: - enum: [ rx, tx ] - const: tx This says we can have 1 or 2 entries. The first entry can be either rx or tx. The 2nd entry must be tx. That's what you want. However, '"tx", "tx"' is allowed with the above, but we enforce items to be unique elsewhere. Or I thought we did, but we relaxed '.*-names$' at some point. I'm going to fix that now. Rob