Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp211162lqi; Wed, 6 Mar 2024 14:58:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX5WCYvgnis3Ib4ASoyYNQJwygKcqJt+Ow79SDOuysioDMbzFJFzYgAzCl30ejnWOrB+5+fLWhztBdcYJJb6cIk8G0ccNw4LT3hip37ag== X-Google-Smtp-Source: AGHT+IFrJSZvllYMTK6Ku6S5vwfez6mT9K021AXe9ClUSk/WurnfSi3QWh+nn5Yc0UKQ8dSlPZlZ X-Received: by 2002:a05:6a00:1915:b0:6e5:75cd:eff0 with SMTP id y21-20020a056a00191500b006e575cdeff0mr17119905pfi.31.1709765929822; Wed, 06 Mar 2024 14:58:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709765929; cv=pass; d=google.com; s=arc-20160816; b=PK3s9wlao6PlioEUNF43R7bq3YdKlOUXl1pjgndrfncmj8DKyTobK0r7PS4SwtZ49Y UG9E7ZJye4oyKSwNA6DicuCwukH67fqsTvaQVv+BDqDW+kjwwWwqfYQP32sD7UHS+zdW 4ILumL5YD28TxgWBKMlETa3SptczuDCPcSuPSihEOoedzAZpHTE4hvYfJLVi7M9uYecd dpeo1qiJ+wfLj3EYv0YaBScE0FJ4ZgsfKYUhRDff00KpMaP18mfBgsX62EJFGHBpcolL K/wO5K0nmD+KDNcQ2FJxE2tkMB/Pemca801q08IrWZz9SjWW2HtYSc2jVpQtSILaun0K b53A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=oScBxny+Jwdo8EWGgEafNAGC95KBooVxP+inaLnyAQ4=; fh=E3QUDm14zAxCyCm2Lb0204UJLn6tq/Ex4NZmBOPUynY=; b=zx2PwM8IZ/wtuJ3fjV2xZOh2N40mN0RqDUoUme9z7B6lY9Rv2Ot6+StI2KAwdRoEIq IjcBEGcUDWLiCBsXa8aJmjOBvHUADJBwC26fPGC3tK1QOMThH9zxpzOZ5FdOdcdFpKU8 wCqrQMFzpsnT6rHkCyssSSOWQSU2XYZyNfJ+kggTmtMJxaP2d4aEr8/HeHy6OmxoVe7b Sa5g4S/eoMPSCpkyjsXsNMJLjkHVkNkC93XYAHjpB+ys05QkH2VtO41kBTiEAinKAuNx TrfbveQBTIRGhPBP1K0TSmpSxyGVhftEaXuPDbIxSHoyVC1AWEMFxfHiw06kwLOOxdAb Aytw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h1cIKGlO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94680-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94680-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 o19-20020a634e53000000b005dc9617013bsi12608845pgl.33.2024.03.06.14.58.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 14:58:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94680-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=h1cIKGlO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94680-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94680-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 76BC928357A for ; Wed, 6 Mar 2024 22:58:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 648591C684; Wed, 6 Mar 2024 22:58:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h1cIKGlO" 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 6B4C01BC56; Wed, 6 Mar 2024 22:58:38 +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=1709765918; cv=none; b=jKHjwIwVgX1ub/mRVyTjUlAya+ptALkP+Dex3ymgUtwynn5PxXzpSVgzZ77vVIXl0PssJeIw1FbUzwywlGOqxyIgupmf6zsVBeCt8ykHzabsXR2/6qzvJajMlFbuyS4sW21aHO6zNRR/Jl18/GEYBe4jlluX9sLMq2wXUuFk0HA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709765918; c=relaxed/simple; bh=zmqQrFwoEDSQz2SwnjEGFE81FIyebYKtaD+xjmng/wg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=cutSPDm8JAoYpng9I/4opdt17jK4n207zLgQ9/45lwOB7LcWHaP8cwvtPylxJzrX8tmEVXahxacVrCnmuY7ADX0NKEviZFPdWiI/XbMRAAqE7Uls3NNc1K1vO2XIg9sOIl6R6oehf6kL3LBCUyl9LwahNKzd5Ox9xEyAMVb3uV4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h1cIKGlO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 079D1C43399; Wed, 6 Mar 2024 22:58:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709765918; bh=zmqQrFwoEDSQz2SwnjEGFE81FIyebYKtaD+xjmng/wg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=h1cIKGlO4ISsx49R/HjszbjkUuwHYfMwq5ZWRUjEcLCUgF1rz1asG2lCCSBfAnOQL 9LvfHdCt1nnFoWHobs0rPoxjihVQzHz1EyLtWU4Y1+d0iHxinlapeKQ9e/5fajtPhl FJK57fvoqgrezIc1+TBQpzd53chplBoN3PaQZGM0Ykckrr0/JHrzJKKsh/tH7Ou5fo ndLtqoChgyvY64Otmt5pGMmfamyu6Acik+mSzaGN7i5EEHx9W8hn71VszlNIy9ewBh 4Wx7Wo7ZZK5Ej8RhC63r9I6XZ+s84owdwK8UUpE/9W3dfhgc8fBoCM/igfkBiotliS 5cylcgR1xkkoA== Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-513298d6859so238375e87.3; Wed, 06 Mar 2024 14:58:37 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXJs+U5UolVewGsWDyLsK/HnuuveTZX1uZnu6BAgZ8DPqkx8/YeHKFSwSWM0KLMyDV6vFyhY941DPbk4+lWsQZwaSxS2dCWZocyXp+7Sb08mbEWuMVOzv/SvIZ5+xZBSUJ2vqZIbim/JPohK4aqhJ7F1Tf0sXpLD/2j+O5KMTltwQWwIKlt X-Gm-Message-State: AOJu0YwFnCJOnCxXQUeTaTN/78POECNXrgD28Yw116kTb4c+NH+zlJCM Oche0bwJ8t9UYeI0bPiGXTyIi3++1cJDsAjT6SWBEYD+RMAkASfTLjN1pbfAfxq1wa5HZlyK0K4 7wxgMaq6YGihsJl89kiqJxuguVQ== X-Received: by 2002:a19:2d4f:0:b0:513:2b35:2520 with SMTP id t15-20020a192d4f000000b005132b352520mr274982lft.58.1709765915961; Wed, 06 Mar 2024 14:58:35 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240305-asrc_8qxp-v4-0-c61b98046591@nxp.com> <20240305-asrc_8qxp-v4-3-c61b98046591@nxp.com> <20240306-pebble-grope-88fdaa95a87c@spud> <20240306205524.GB587561-robh@kernel.org> In-Reply-To: From: Rob Herring Date: Wed, 6 Mar 2024 16:58:22 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 3/4] ASoC: dt-bindings: fsl-sai: allow only one dma-names 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 6, 2024 at 3:19=E2=80=AFPM Frank Li wrote: > > On Wed, Mar 06, 2024 at 02:55:24PM -0600, Rob Herring wrote: > > 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 examp= le: > > > > > 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 dm= a channel. > > > > > All user use 'dma-names' to get correct dma channel. dma-names al= ready 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 impre= ssion > > > > he was suggesting that in the two items case we'd not care about th= e > > > > 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 ever= y > > > 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. > > The key problem is that I don't want to lost notes when respin patches. I= t > is easy to make mistake when I copy old serise change logs. You don't. It is all saved in the commit. When you rebase for the next version, you just add to the changes history. > Previously I use git notes + git-rebase, it work fine. Notes can be kept > when I do rebase and git commit --amend. But one thing is not good. > git send-email --to-cmd=3D./script/get_maintainer.sh *.patch. It can't > combine all patches's maitainer to a list. It looks like difference patch > will be difference --to list. > > b4 can help some case. But can't keep git-notes information when rebase. > It should be git bugs or feature missed. git-notes always seemed clunky and to be extra work to me. Just having the changelog in the commit msg is a lot easier. > > > Rob's suggest was not work. dt-binding check complain too long > > > if there are two dma-names =3D "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. > > Conor find out my problem. The below code works. I missed maxItems. > > dma-names: > minItems: 1 > maxItems: 2 > items Missing ':' > enum: [ rx, tx ] That is not my suggestion. This would be my 3rd choice after what I proposed or what you had already. Please plug in exactly what I told you and report back what doesn't work. Rob