Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3073040lqo; Tue, 21 May 2024 06:15:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWO/ggiaYUXIiOmAaxBIqW1SOWSC1Sqase3flAuRhU2uM54C5wYKFpKLEE2kltCYKHSlB9QiPxEVeyoFFNbcDitE3bO7Sa7pslo9SyzUw== X-Google-Smtp-Source: AGHT+IG2PpUprLmHvnXujEFhgaxlHb9MSI7VwFclCmtXauauEl0/kHoYeOStMwhvdCIy6qcDPnXm X-Received: by 2002:a50:951a:0:b0:56e:f64:aaf6 with SMTP id 4fb4d7f45d1cf-5764d2165damr4861982a12.5.1716297334353; Tue, 21 May 2024 06:15:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716297334; cv=pass; d=google.com; s=arc-20160816; b=1E9JFZ61EoumxuFTuEIwgkGIpAvdds6S4pv93C5JeepzqMrKUUmG6MJ2hLiS6gQ+83 s7sRSwV12a0+32qABm0wg0CDk1Hw8B9OVg1fEL7Onzj5pi1eOinCVMoK5zwMrhWhLJkL Ps7e129EeRHHd93QuCLpad80PA6+ZVPUNbPKkZbCAHw+PtPNrEQJkMBzb9tSjDP78dnM pa6B8gsGwry00K6kZxEicylLz9sRxEOkQrUwmCeGgkGu9PIpiw8JIQlLh8cTiwRNcNmr o2oJFI2mufBTLo0OW1Oh0e2F2if87AfOV03RbmtLYD/cETjxfQoMeboZsx5ZM0b0LaD8 Gh2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=/JwugDw4q1sV/Kf5SJf4M3YRla9SOKHNH5flwjaLMV4=; fh=QVPLNrva+3nxyIzkZCjF29YbDqa1VH91qMLojbQvGJE=; b=mcGjYZrAz6pkAcDROBOFQZFCBhe3vCBaETu/Q7Vg7YzihM/t9F49JtUWG1GN1G+gZR AWdILsE79sWYguleCBap02LYhi0fO9J28ir4V9YZmpntQc6hFcnAHagcq9NJdMsUx9gd rzYQTl8mXcaDRO8txlbJcaEj1EOTlVBbCLRKUSqtmb2RqI/DxeNQUVSS2fUx0x+Mn6EC 2S87XgPzEhhzTDQDnhlZORpxzvIzjJdghmn7CuuW8A+y4VyYBXjwSIiI0p01NgmRhTmw 4sDrlj2nT1XXoVCImyKHKSJYyyQbVgH1klgUxCCQanPHG8cxGLO/3/Sswylqo8HgrRts IMMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=p+BndcQU; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-184999-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184999-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c373113si13876947a12.586.2024.05.21.06.15.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 06:15:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184999-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=p+BndcQU; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-184999-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184999-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1BC301F231A7 for ; Tue, 21 May 2024 13:15:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 512F078C80; Tue, 21 May 2024 13:15:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="p+BndcQU" Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (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 AEFE278C6E; Tue, 21 May 2024 13:15:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.132.182.106 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716297314; cv=none; b=Fr2peWcEXK0AG4pmybnXBNv2shSNRCzo0aM1w5svt99dya7iAeENLgCTmdzqfzR85Tm5cFZaSqPlA8FzbTIEQUJbJc73BQUzXsPtdgMqm6zeQ5XEE0B1Gs7w8Xpz/Cooeswe0m8rDNeKKmCM8jpT8tYsfr76XJPhIHDC8psjmK4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716297314; c=relaxed/simple; bh=xBzALiC8QpbiUZ0vIp/DDNJUn3RjiTwJaSILiRdd+3U=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=Qm2a14Uq37D5150su81Oyhv0AkPqyXmH/h28ZN2aox4EHbH61mR/qX7KgjSZIfEhzMy6jsaG2FCC1pXHl+6gaQ2LSU44TyKCKW8pXOvb8tz6+ApSljQSOJLKBCwKFY9rSuBg4dS/d/MptnKbycblPAcfI7MtESDRW2ApTyVC2zQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=p+BndcQU; arc=none smtp.client-ip=185.132.182.106 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44LBRiTd019430; Tue, 21 May 2024 15:14:48 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= selector1; bh=/JwugDw4q1sV/Kf5SJf4M3YRla9SOKHNH5flwjaLMV4=; b=p+ BndcQUREV6vnAs24JULfWquhsrWpIIlgDhAF1nYhHkU7hU+WmPGT9NSS+AuVj3qv IqMklPxg4JOrbgrn8VqHONaWyexs/qy3qJX6aNKBTIMEE3X57GTPfPoyizgzcE1F 6Jpuy06CHFYp1h82UjBEQ79OOwH3bb3eNwBjpbead9ZepN0naqcaD+WvNJne7ViK cTrc+Fw5s0Y8PSIA33CfDnt6Tksw57cbmuMi/rfMpMKJDH1LwnoaJnEt3L39Nl9n acn6SklqU2i1tNW0AqfzpbAiyFoNhT3FXgLNEi+QtKSLYsC+Bf6I9kLBzqVF5+M0 8isqx80pqOqhLIgV/PXA== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3y6n42cc30-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 May 2024 15:14:48 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 944294002D; Tue, 21 May 2024 15:14:43 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 0DDD321A8FD; Tue, 21 May 2024 15:13:54 +0200 (CEST) Received: from [10.48.86.132] (10.48.86.132) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 21 May 2024 15:13:53 +0200 Message-ID: <7ba9113b-7360-4201-b983-e53e90f2be06@foss.st.com> Date: Tue, 21 May 2024 15:12:49 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] ASoC: dt-bindings: stm32: Ensure compatible pattern matches whole string To: "Rob Herring (Arm)" , Arnaud Pouliquen , Liam Girdwood , Mark Brown , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue CC: , , , , , References: <20240520222705.1742367-1-robh@kernel.org> Content-Language: en-US From: Olivier MOYSAN In-Reply-To: <20240520222705.1742367-1-robh@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-21_08,2024-05-21_01,2024-05-17_01 On 5/21/24 00:27, Rob Herring (Arm) wrote: > The compatible pattern "st,stm32-sai-sub-[ab]" is missing starting and > ending anchors, so any prefix and/or suffix would still be valid. > > This also fixes a warning on the example: > > Documentation/devicetree/bindings/sound/st,stm32-sai.example.dtb: /example-0/sai@4400b000/audio-controller@4400b004: failed to match any schema with compatible: ['st,stm32-sai-sub-a'] > > Signed-off-by: Rob Herring (Arm) > --- > Documentation/devicetree/bindings/sound/st,stm32-sai.yaml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/sound/st,stm32-sai.yaml b/Documentation/devicetree/bindings/sound/st,stm32-sai.yaml > index 59df8a832310..f555ccd6b00a 100644 > --- a/Documentation/devicetree/bindings/sound/st,stm32-sai.yaml > +++ b/Documentation/devicetree/bindings/sound/st,stm32-sai.yaml > @@ -68,7 +68,7 @@ patternProperties: > properties: > compatible: > description: Compatible for SAI sub-block A or B. > - pattern: "st,stm32-sai-sub-[ab]" > + pattern: "^st,stm32-sai-sub-[ab]$" > > "#sound-dai-cells": > const: 0 Reviewed-by: Olivier Moysan Thanks Olivier