Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp796184pxb; Wed, 1 Sep 2021 10:03:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6gC/f+DFv5Gttw2d+XnWJ5AzG3W9TK0JpCx5GsGIAae6YOGT0PaI1i1dGyTt1LE4Dgnjq X-Received: by 2002:a17:907:b06:: with SMTP id h6mr479209ejl.130.1630515817691; Wed, 01 Sep 2021 10:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630515817; cv=none; d=google.com; s=arc-20160816; b=pGsl9FmbUhARTpozBlKpM0neoFWnSIZZkK3nad91+ZaKBqXOpSqB/gHdO83XQoHazf x68zyUUmOm23ns3jLyRvtcfg9zQaiVHHi3D12nR18ExiVXlmiCj7t1k/WdWU0D1LLxM0 5iypWrCQ9QQiLewL8ltBXtTXUn1kkfr3Rq8a3uU/2DnB/BM/n2Y7q8P2dzuxH6bYyOqB K+y03syJyf+EqrQVDv3NBa3d+fwJKXkaBAlax3OD9TEsGbAvjvZy8PhmImWNXt0Uuon2 uq5to4/af0QWTEVJwHpzKAu1aQYvOn2OkRp/AwuRS0D6XNVqfQqlsifOTpU0bgSm7Tt4 jmkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=AsBBpMX80wqeHKy/u5hB4zcmcTWYEn1g5H7zI6Mwz2A=; b=eDN1y4y/u1uu7Fncak2deR6+ZK8T+2kpZMOpPIwuvb+s8JUg8XjR18MngzLVOS1fi8 6pEJHDgLSWeDQYFrlK+zZiNw1QPO710S+4/rRxMSxOVMO/GhKPkD2CXjBEuUrMb+jMAY 8vLoXqTQnF26+Urceo29LdiyUWIEpSnlnUPnmEfh6V6i/MiQutlZ4t1+UQT+nI4HXuGk Rukxka/gjUQi5yCbQK/Q1CZ/ETyr2Lo8Sz3TYX5Xjjaxsznb8SLyeekJ7ZaE0kcUq9sY V843P9+lmvSTQbamWdXf9EvIpay+fZoXsGyAcsIQWjumgqcg38/GAR4dwvb0rUMetrPT e3dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jQ8o2gg9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hs22si243995ejc.85.2021.09.01.10.02.31; Wed, 01 Sep 2021 10:03:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jQ8o2gg9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345502AbhIAQ7y (ORCPT + 99 others); Wed, 1 Sep 2021 12:59:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:48194 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345518AbhIAQ7w (ORCPT ); Wed, 1 Sep 2021 12:59:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B55186056B; Wed, 1 Sep 2021 16:58:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630515535; bh=hvxpfj8K8oct4hHwvU35wB0MGQTZZG6Lx6u8g6TYyo8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=jQ8o2gg9DltU6/b8m+uOCVqeNkepc5gSMO2oDCxvuQ7TiAcvPI9t2viZ3+v9PDBZf DVPYzT/NiO+Mo+Y/3abRZq0P0zO35/Jcn4AhRJFHeeXhuINWzK78foEkoljMwPMSyz tAFCZ1kLtbbY6S0QK0W7R7vMENkDHD9zzgty81/80hRXM0YsZp9y15prHMUgPCn0MD pQTcbxe8886mpU/nUz24YixQVBz5AQKT9bQDAvZKyEC5sKoFi7GyRBXhbpKCQD6iLy ogIsf3htlkxk2d+fIsd3jFDDuPBWrYSGSemmtiC6ZATnyBYzwDkw8oeiGO5vi3TTdm T3+/dHBrdReTg== Received: by mail-ed1-f45.google.com with SMTP id j13so4724887edv.13; Wed, 01 Sep 2021 09:58:55 -0700 (PDT) X-Gm-Message-State: AOAM530GRKiR1JIsVhtqsHs1OxePoU26FD/aJsvc6THDpIhWrKhpyVrs OYmhIjYSs8PNQix8vKzBkW4ofGQFuLVYNfzA7A== X-Received: by 2002:aa7:cb19:: with SMTP id s25mr601401edt.194.1630515532404; Wed, 01 Sep 2021 09:58:52 -0700 (PDT) MIME-Version: 1.0 References: <1630513111-18776-1-git-send-email-spujar@nvidia.com> <1630513111-18776-3-git-send-email-spujar@nvidia.com> In-Reply-To: <1630513111-18776-3-git-send-email-spujar@nvidia.com> From: Rob Herring Date: Wed, 1 Sep 2021 11:58:40 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/3] ASoC: Use schema reference for sound-name-prefix To: Sameer Pujar Cc: Mark Brown , Liam Girdwood , Thierry Reding , Jon Hunter , Stephan Gerhold , Jerome Brunet , aleandre.belloni@bootlin.com, Linux-ALSA , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , linux-tegra , Bard Liao Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 1, 2021 at 11:19 AM Sameer Pujar wrote: > > Use schema reference for 'sound-name-prefix' property wherever > necessary. > > Signed-off-by: Sameer Pujar > Cc: Jerome Brunet > Cc: Stephan Gerhold > Cc: bardliao@realtek.com > Cc: Alexandre Belloni > Cc: Rob Herring > --- > Documentation/devicetree/bindings/sound/nvidia,tegra186-dspk.yaml | 7 +------ > Documentation/devicetree/bindings/sound/nvidia,tegra210-dmic.yaml | 7 +------ > Documentation/devicetree/bindings/sound/nvidia,tegra210-i2s.yaml | 7 +------ > Documentation/devicetree/bindings/sound/nxp,tfa989x.yaml | 5 +---- > Documentation/devicetree/bindings/sound/rt5659.txt | 2 +- > Documentation/devicetree/bindings/sound/simple-audio-mux.yaml | 5 +---- > 6 files changed, 6 insertions(+), 27 deletions(-) > > diff --git a/Documentation/devicetree/bindings/sound/nvidia,tegra186-dspk.yaml b/Documentation/devicetree/bindings/sound/nvidia,tegra186-dspk.yaml > index 5f6b37c..ae04a11 100644 > --- a/Documentation/devicetree/bindings/sound/nvidia,tegra186-dspk.yaml > +++ b/Documentation/devicetree/bindings/sound/nvidia,tegra186-dspk.yaml > @@ -48,12 +48,7 @@ properties: > > sound-name-prefix: > pattern: "^DSPK[1-9]$" > - $ref: /schemas/types.yaml#/definitions/string > - description: > - Used as prefix for sink/source names of the component. Must be a > - unique string among multiple instances of the same component. > - The name can be "DSPK1" or "DSPKx", where x depends on the maximum > - available instances on a Tegra SoC. > + $ref: "name-prefix.yaml#/properties/sound-name-prefix" This is generally not how we reference common properties. Either you add a $ref to the whole schema document at the top level of this one or add a 'select: true' in name-prefix.yaml. Rob