Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3126736ybf; Mon, 2 Mar 2020 23:39:22 -0800 (PST) X-Google-Smtp-Source: ADFU+vtC3Qh2KxTgHNrIbWZBeFYapW9fDgobi/UO1cwoS2GWA1yHT6zhU4uhhgJQISGrZRoCWo0E X-Received: by 2002:a9d:7a81:: with SMTP id l1mr2376329otn.26.1583221162236; Mon, 02 Mar 2020 23:39:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583221162; cv=none; d=google.com; s=arc-20160816; b=cj29lnkBNz8Rnliniqfw9sQ1hU1uvSYEbpelZxnvAK2yKPs0dWh8pK2gPetQt8+dSC nMZeFljKGCMlgT4EGQX+g2FAtCojZOxaLkIOvrZOl37p8bFPqeNj7yb9riRbyr3xb012 LAG80m6jIEYrXtkFqNh8Js58qxfm7yIGrJVq83ckzNLXZ43P0X1qcFWH/CKAaHwY+w35 IqORU27TzKMuXzaDlP8EpCwgiykkGvl3g2xCb4I74LmzMzfO4tqkeioeEOY8rZfzf59z PaC02yJvpQEsmXvt/jYCqArxg+D3ho5rbirhAA8I6luYRjTZeIqwKmtTwZqa3F7tmS/F lKlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lp++SjSydgt9rFdJFF3CB/lDlkmkywlwzPGaMF0zRlA=; b=nTeo8iHdyesDdk4TiIhR9PexeyPeixlHGbaLRSCv7svxMVH7GaQ1pN1nCJsxdVWe9j ivX1D0w3BXdRKQksiZF1QoRHdf4mwSYimqrTu2r0/71xJiCCdwjObOeK1pA5wbXT5jac hzh7RPBvP+OKayo+eiihR9sBDa5F4H+mXQPtkh4CGyneoZQh0cKu1TTh4Qsjip/1zh1Y pizslKZr6Tt2N4SDmzZg0OakojIO1OwPgyzw3PgZDKD1lhdSml7CNhmI7KSJBnPbWskn vcYa3l/FBXecS3GVxRxXfni5DknMVxRNb60fP+v0Bdyhft0xJL+279FrsSBRdSCXOMt3 Sp8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N2hhA1DH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t25si7894786oic.183.2020.03.02.23.39.10; Mon, 02 Mar 2020 23:39:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N2hhA1DH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727668AbgCCHiJ (ORCPT + 99 others); Tue, 3 Mar 2020 02:38:09 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:46936 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725440AbgCCHiJ (ORCPT ); Tue, 3 Mar 2020 02:38:09 -0500 Received: by mail-pf1-f194.google.com with SMTP id o24so1013979pfp.13; Mon, 02 Mar 2020 23:38:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=lp++SjSydgt9rFdJFF3CB/lDlkmkywlwzPGaMF0zRlA=; b=N2hhA1DHJRr48b03MdRwK7wZT+y/IIbu0elhvz7gKyVzfWBwfAl0mdXhHechKW3w5h wBxpbplnqcGuRCe2aCyqhLZ2wpo+o2zcRsqCG1KdGYHdSJxY32PohGGlo4aMczuoJHna CMWMl9Exwvu57I8hyLPt/3Q4RBQTH5w67lBRMPCFvGriXxlrcvaH322RGt4kpMoBHUxh 3E4JEzdChP8g3QMeRMTmn351CirQyx390iw1AbTyvsytm9dZSNigQYXyPmQAa74sAYIC Pj+UjOdxqIfBRBpzjWssycX5jwrJViK8MAIoJf3vZquhGT10/uKK0BZsNZxEY15fRJdw 35Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=lp++SjSydgt9rFdJFF3CB/lDlkmkywlwzPGaMF0zRlA=; b=GrxvhCUgqmbfu92ZHnn3Uhi0H8/0NLyGayk+Grwljm0TAlkMYMnDi85iJpM6Sw2ZLu T9rZYu9gmrd1EzervZA0Bg4fgGVpIEIMn2Tq3mqVUVguWPJzUJjVD/Xt4Ll6ZcKsTPrm 0RxWjBNcBkSVNkBAc1j562QIK78E5WfFiptxsTkcrjRvCKUqgGUxnaCefB4YgdX9VZe9 RzwyYm1hMGHYFYIuLbBU2tLuiB/5MJ69QJN5Q2z9u12pP4YY/5eBFd0XNtspkCapGQ6J Ax+qW0S+hJFagAkh+7JFQ/k+fMVkoxJpETmMLbo0EKHQ9TopbsZ710wBflM7HHqGPbu/ yR9A== X-Gm-Message-State: ANhLgQ1wU/99vVINgFmqAuFhn3iCYq0LA3TS4ED/8oQlChE7Nrp/2RL6 a6b5qDfGmYvUouStd6Oigo4= X-Received: by 2002:aa7:8582:: with SMTP id w2mr2820931pfn.89.1583221088207; Mon, 02 Mar 2020 23:38:08 -0800 (PST) Received: from Asurada (c-73-162-191-63.hsd1.ca.comcast.net. [73.162.191.63]) by smtp.gmail.com with ESMTPSA id p94sm1516093pjp.15.2020.03.02.23.38.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Mar 2020 23:38:07 -0800 (PST) Date: Mon, 2 Mar 2020 23:37:46 -0800 From: Nicolin Chen To: Shengjiu Wang Cc: Rob Herring , Shengjiu Wang , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux-ALSA , linuxppc-dev@lists.ozlabs.org, linux-kernel , Timur Tabi , Xiubo Li , shawnguo@kernel.org, s.hauer@pengutronix.de, Takashi Iwai , Liam Girdwood , Mark Brown , linux-imx@nxp.com, kernel@pengutronix.de, Fabio Estevam , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 1/8] ASoC: dt-bindings: fsl_asrc: Change asrc-width to asrc-format Message-ID: <20200303073745.GA2868@Asurada> References: <872c2e1082de6348318e14ccd31884d62355c282.1583039752.git.shengjiu.wang@nxp.com> <20200303014133.GA24596@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 03, 2020 at 11:59:30AM +0800, Shengjiu Wang wrote: > Hi > > On Tue, Mar 3, 2020 at 9:43 AM Rob Herring wrote: > > > > On Sun, Mar 01, 2020 at 01:24:12PM +0800, Shengjiu Wang wrote: > > > asrc_format is more inteligent, which is align with the alsa > > > definition snd_pcm_format_t, we don't need to convert it to > > > format in driver, and it can distinguish S24_LE & S24_3LE. > > > > > > Signed-off-by: Shengjiu Wang > > > --- > > > Documentation/devicetree/bindings/sound/fsl,asrc.txt | 4 +++- > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > diff --git a/Documentation/devicetree/bindings/sound/fsl,asrc.txt b/Documentation/devicetree/bindings/sound/fsl,asrc.txt > > > index cb9a25165503..0cbb86c026d5 100644 > > > --- a/Documentation/devicetree/bindings/sound/fsl,asrc.txt > > > +++ b/Documentation/devicetree/bindings/sound/fsl,asrc.txt > > > @@ -38,7 +38,9 @@ Required properties: > > > > > > - fsl,asrc-rate : Defines a mutual sample rate used by DPCM Back Ends. > > > > > > - - fsl,asrc-width : Defines a mutual sample width used by DPCM Back Ends. > > > + - fsl,asrc-format : Defines a mutual sample format used by DPCM Back > > > + Ends. The value is one of SNDRV_PCM_FORMAT_XX in > > > + "include/uapi/sound/asound.h" > > > > You can't just change properties. They are an ABI. > > I have updated all the things related with this ABI in this patch series. > What else should I do? You probably should add one beside the old one. And all the existing drivers would have to continue to support "fsl,asrc-width", even if they start to support the new "fsl,asrc-format". The ground rule here is that a newer kernel should be able to work with an old DTB, IIRC. One more concern here is about the format value. Though I don't think those values, defined in asound.h, would be changed, yet I am not sure if it's legit to align DT bindings to a subsystem header file -- I only know that usually we keep shared macros under include/dt-bindings folder. I won't have any problem, if either Rob or Mark has no objection.