Message ID | 20231005093247.128166-1-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2016:b0:403:3b70:6f57 with SMTP id fe22csp331143vqb; Thu, 5 Oct 2023 07:19:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5ikaslkIdkf4TvRs9JfzyhQMeKlc01G5F+kJB/m9tXDivXFp/ZWvieO1NoVdvQEWhAlU7 X-Received: by 2002:a17:902:e850:b0:1c5:d1a2:c3e8 with SMTP id t16-20020a170902e85000b001c5d1a2c3e8mr6161675plg.5.1696515563501; Thu, 05 Oct 2023 07:19:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696515563; cv=none; d=google.com; s=arc-20160816; b=b4DNgIL6MF3TtZeAIONEM5JFQ/Os3JflpvdFZUo6euAOD+l8bb1y0C6yoL9Nndo9si 4kaY1AtGt+bMD7iwJFgj6Y/3PBxbcO/HtdFYZTw7rR2adjZW5NHHALJ9ElTh5Oij2PYD FMd1MjsTsHH6G+G7K8I8fTQcozbZTXtOElXeel53BICvUAqSCbxTcRfclQvh2nq39lxg HWCDQay6K5ym/XoY96TwI7guqMPC+KQhyPZA36EnzM/uNtGx3CVLShdPXBNJD//eTYNo b/h/wwdFBQDZHaSsmo7LklDhqVywG7di83rJrGMMUdfTX4ob3nvMci/9n4KoP37f8IKz Mfpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qNwLLYEchjqrT8u4dds+22/hvzzwVkXCbPu7CyE+3Mk=; fh=cYVZA5J5n3CKNjYczW1y/UvQo8SYaAF/aOjXFh668rM=; b=StGrFR/SmulyLH0vpyRW8DxYTyU4bfTuKm8MVPUuDwuXCcjDoz3PzrV8M7ATWaHIPr AB67YoRh2IF4mw2G8i43+A4cd+AVLHwF/DCf8sBeEfQFUiF9c/mLWbJdLQiHGCZ6GMYW oKlU9fTP8nRP/E1iQp7ygt7rSWHh9JXttv1ERm/yWY9I6Utv520pybDn3KVKUCEaIJrz CZZBaDUULdPIz3wXea2T6PJehuFmFZgMJ9KCwmOengDjVjavl3ix3wSZQvbDBi3LtFkn ZdJ6VPagCquOlAFauZlf+bKHBkVwy3F25n+LKNF/I5ce7jPcEn8B927YRNmSS+lsd3BG kt7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="V4REbNl/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id kl14-20020a170903074e00b001c60ec1e654si1566352plb.416.2023.10.05.07.19.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:19:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="V4REbNl/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 3155680FDCF3; Thu, 5 Oct 2023 07:18:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232011AbjJEOQT (ORCPT <rfc822;ezelljr.billy@gmail.com> + 19 others); Thu, 5 Oct 2023 10:16:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231843AbjJEON5 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 5 Oct 2023 10:13:57 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6F50A5E8 for <linux-kernel@vger.kernel.org>; Thu, 5 Oct 2023 02:32:51 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-53406799540so1267897a12.1 for <linux-kernel@vger.kernel.org>; Thu, 05 Oct 2023 02:32:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696498370; x=1697103170; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=qNwLLYEchjqrT8u4dds+22/hvzzwVkXCbPu7CyE+3Mk=; b=V4REbNl/YAk00RXPG9rZxg5pwJCWIBFL6E5x0WAlIICbPHdhHu2STeD/ZWKy739zw0 vkfNqbtr7nun1bxGzAJMLOzce40sjFpy3nJoo+lkuG7rAKzsVGkVPMpG9TpBE8/7f9+F K73Dq2cz4suXtGGUuAJWN5jpwJDATKp3RJU3GdLFSYdK4WK6G/+4Bx7Z1N6dgi8nkxdL kkDfq8pWYK8KkIQ3X4j6fNKKFrp3pN09WSkbjd0ci+2H/7sA/EY16yplSwsIC4lUVSQZ m1LBONZfdebCqNX1+FKtzMmqkvaXg+jjzBmuh5hx0N/XYvuiqNG/9dc8calhLVhl3WM7 ORxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696498370; x=1697103170; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qNwLLYEchjqrT8u4dds+22/hvzzwVkXCbPu7CyE+3Mk=; b=SKLkZBnZRhZhM9Z/mxQJavLSorwzHZNulTTOjsq4c8Vh1m+U4EQukqOlKYNLwF8IDq DSsPEiDuQq85LuaQK7FunpLKw0wswTQPzlysbuolq3W6bDWqpqcFOsfFm0AeA50VrO2u jgaCq4VQDqP+GfDpaiB4hhrpT6bIc/hH5HI6Zerf9lBROwL6A7OJnB+2Ugb9vgztsWTY npstM+pxN4M8bXxs39kIgsJIyJneM8eRQkCmZqypHUnRTZnjTbsvcL+izxDBlqOck6dG QYuEXYNf2ZrCmK92X1sXM7LTZPvmmXjDYxIFTAl1/+YL2lS2Zh96e5GywKAowcELpT12 yv8g== X-Gm-Message-State: AOJu0YymvQnjl+/0aizxoOivdL5XvlhRIH5oNTireZxUe+sfA1jKg8mm DlVcvsjlxaRzyR3zyPycf+DMyw== X-Received: by 2002:a17:906:310b:b0:9ae:5765:c134 with SMTP id 11-20020a170906310b00b009ae5765c134mr4869914ejx.15.1696498370178; Thu, 05 Oct 2023 02:32:50 -0700 (PDT) Received: from krzk-bin.. (5-157-101-10.dyn.eolo.it. [5.157.101.10]) by smtp.gmail.com with ESMTPSA id rn4-20020a170906d92400b0099bc038eb2bsm863893ejb.58.2023.10.05.02.32.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 02:32:49 -0700 (PDT) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Rob Herring <robh@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jiri Slaby <jirislaby@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Linus Walleij <linus.walleij@linaro.org>, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Andreas Kemnade <andreas@kemnade.info> Subject: [PATCH 1/2] dt-bindings: serial: fix regex pattern for matching serial node children Date: Thu, 5 Oct 2023 11:32:46 +0200 Message-Id: <20231005093247.128166-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:18:55 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778925503105514170 X-GMAIL-MSGID: 1778925503105514170 |
Series |
[1/2] dt-bindings: serial: fix regex pattern for matching serial node children
|
|
Commit Message
Krzysztof Kozlowski
Oct. 5, 2023, 9:32 a.m. UTC
The regular expression pattern for matching serial node children should
accept only nodes starting and ending with the set of words: bluetooth,
gnss, gps or mcu. Add missing brackets to enforce such matching.
Fixes: 0c559bc8abfb ("dt-bindings: serial: restrict possible child node names")
Reported-by: Andreas Kemnade <andreas@kemnade.info>
Closes: https://lore.kernel.org/all/20231004170021.36b32465@aktux/
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Documentation/devicetree/bindings/serial/serial.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Thu, 05 Oct 2023 11:32:46 +0200, Krzysztof Kozlowski wrote: > The regular expression pattern for matching serial node children should > accept only nodes starting and ending with the set of words: bluetooth, > gnss, gps or mcu. Add missing brackets to enforce such matching. > > Fixes: 0c559bc8abfb ("dt-bindings: serial: restrict possible child node names") > Reported-by: Andreas Kemnade <andreas@kemnade.info> > Closes: https://lore.kernel.org/all/20231004170021.36b32465@aktux/ > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > Documentation/devicetree/bindings/serial/serial.yaml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Acked-by: Rob Herring <robh@kernel.org>
diff --git a/Documentation/devicetree/bindings/serial/serial.yaml b/Documentation/devicetree/bindings/serial/serial.yaml index ea277560a596..5727bd549dec 100644 --- a/Documentation/devicetree/bindings/serial/serial.yaml +++ b/Documentation/devicetree/bindings/serial/serial.yaml @@ -96,7 +96,7 @@ then: rts-gpios: false patternProperties: - "^bluetooth|gnss|gps|mcu$": + "^(bluetooth|gnss|gps|mcu)$": if: type: object then: