Message ID | 20240123083312.20808-1-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-34909-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp195414dyi; Tue, 23 Jan 2024 00:35:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjinRz4W0YyvRQtx4Ih9tjrafO8HPOBowpAHb8K/Uvy4WoRghjkEPMhKPajyYusjKTSRCE X-Received: by 2002:a05:620a:1593:b0:783:8275:fbc7 with SMTP id d19-20020a05620a159300b007838275fbc7mr7304596qkk.58.1705998954589; Tue, 23 Jan 2024 00:35:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705998954; cv=pass; d=google.com; s=arc-20160816; b=J7QQ0zevoKXQo4TxvQaxIrRg7uxGtx3On2ceTPB8lxdsi3SEUuqr5AEGEgq5e0jgcR mnmkJeHLtJZFa34BxMeinitup/AFHr9U5HlxmSbDfpGWq3IS8ExHZucwtw3h2ABfbFhn 2Kl3k/9G8IN1HbRFRC0edIbxB7ad7Q06sV3IZPQ9ict/vuj0DAekWxQ8SSy0tFWD8m2W pdd//7MONNGiEZqCkJc3SnU03w1x9y8Dl+j3QGn2lmfJ3uyi29+EzFmvHzFN1PyKuoQF jO6v3QlILeu4Svf0bNQbD4vqWeij+McR7Kumz8F8w0VbsxM75fXm/CR8bWg9WWB+eNr5 G4qQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=uTdIy9kw7huiAlKreeQHxmogKUaEv8cQHVxD7B7SDgk=; fh=1fz4qtofAG1X/KkUTmr+bqscI9T5AHElGhdXe6ClFDo=; b=En3R500rP9vtaU8MvsKoJ4fLY7EXZMOlifEWO3e0DFTgBsNUYSgkQFoIq8BLwBEDjq s89fK8ftg/WYjgZTLXw3G6xKTcE3OFK9EITrYE8NTRN7cXL0ON90NGWYKYrl4TPSGIca 9rU+SvNBUZQA4qQsT+2ZC7aBgfNJQvUv6F+Wgd+UbNjYiPOYPLOW+G0UphOYteGFFx/I Jf6RENlkQ+CeTe05/VEB4K9CJmIGc1Mu+yPvc2B0+Mol+J3oCPXIs60Oip6xLGkeQLx6 BzgzywhrOPVPugKSKjmFi83LaqfAhvVn2Wz3fvKlfrQXTNsTqx5oT/wh/3ppzS7cJFQF ORsA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T9PZtjFQ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-34909-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34909-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id oo12-20020a05620a530c00b00781d27b7ba3si7442925qkn.99.2024.01.23.00.35.54 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 00:35:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34909-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T9PZtjFQ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-34909-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34909-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 63BCD1C218FA for <ouuuleilei@gmail.com>; Tue, 23 Jan 2024 08:35:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 814DB5811B; Tue, 23 Jan 2024 08:33:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="T9PZtjFQ" Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F2F056B76 for <linux-kernel@vger.kernel.org>; Tue, 23 Jan 2024 08:33:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705998798; cv=none; b=mb48aeQPpp1i8NDbfDNrxkedJOeStwsNjhxo1CJizwj0/QtyFPC5WpThWtoGUU6VeCQvmjpBLuZyvy9loJ9ySHH1PTir14KK56rHKgLpILwUN4ef6PTdy90oHSB4HYyczNIRL0lRWNMBPV5EDM7Ml4aF5nAX09Ympsi4xtfD1LI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705998798; c=relaxed/simple; bh=kDMmadRxintZS6t1DV61FQhbbc+OzjzbJOZGeGQUUKU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=dM6gdIjgeOZGXo6yn1pSnJEeZsxYtCzamLmk/txo18avLF9pxnAyZxEag9CdrzAr2yjEYj+DK2iAHpLefY9IHyhWYFd3JN37GPaqZb6P2THqfL3b57+B+wV1QCWrhPgQXmS0MBplophvcliU7mxSLDX1xdnUd9LxLndK4Z0MX7Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=T9PZtjFQ; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-40eb0836f8dso13396565e9.2 for <linux-kernel@vger.kernel.org>; Tue, 23 Jan 2024 00:33:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705998796; x=1706603596; 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=uTdIy9kw7huiAlKreeQHxmogKUaEv8cQHVxD7B7SDgk=; b=T9PZtjFQdsneOUi4t6ShhJ5DSC2ep2wnVAdQdcoIW5RifFRVVCF2IcGu51+jwSKBIu ZbPvAdgoIDupyf2Jnc4MtiWFNxlr0b15I9rj8JdVkosN1Q0Y/TugpqJCr+VsCx9/doPj nPYqr0a2t3AVL+V2N18aF0AS6QSTGGSNNgrAL7iF1nvVuGE1CjUcVcGdUzmu6NzYjyvW lV25dcepqD7oQOvHFd+9otxCh5VHT4uqpb65JJcv8ABhIc3CrcYAIaG3zLnbIhV5hKe2 hZBc5UqJIF0tcYSigQRzM3wgFlJjIZTuwPcyl5pSExe5kl/Ft89ZHy2MQb5EH1iSmC1f 4JJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705998796; x=1706603596; 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=uTdIy9kw7huiAlKreeQHxmogKUaEv8cQHVxD7B7SDgk=; b=VezkOAgLyGupgRz7rUhMDBqIFyt0iCKQg/Gw6jd5XVvD771QmCU5a9KM5cIM9eoYFH 35iChjUbGF4MDGj7XFjIMRF9qDPRQMF4ZQ4f64AsF7jp2ap4VnngonokaqMxT0t5p+Vj QdRfLzG3P2sqGYrzopgKujfvhIg4jB6xqlepulh8W11MTYdyc1Bc8wapN9wKyC7Rp0Vj 2rqrdbOflpkPYOlMk76bRcqQ2N7mVP1B8X+zsWfMOZeIRYRKWQKJ/lL1rEHw9ExPN8DH 0/C6ly/+Csks3t4uRv+4I1dmzu5X0WtpqpjycFZLkdrLZcbAKbWjzt1hRpTklB6eSwLg nctw== X-Gm-Message-State: AOJu0Yws3b+tl1ehEWAzC8egwFUo8ePGEYhuuQdH6VolPoB7Vy213FQZ f58NEjOa8XD3CUvX50e2YEcKTZc3zBXMnu3esnTiJVoi30CRLiKYc3SKcPjJ6GA= X-Received: by 2002:a05:600c:4e86:b0:40e:af40:b4da with SMTP id f6-20020a05600c4e8600b0040eaf40b4damr324145wmq.26.1705998795679; Tue, 23 Jan 2024 00:33:15 -0800 (PST) Received: from krzk-bin.. ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id w18-20020a05600c475200b0040d2d33312csm42145654wmo.2.2024.01.23.00.33.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 00:33:15 -0800 (PST) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Daniel Lezcano <daniel.lezcano@linaro.org>, Thomas Gleixner <tglx@linutronix.de>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Marc Zyngier <maz@kernel.org>, Mark Rutland <mark.rutland@arm.com>, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH] dt-bindings: timer: narrow regex for unit address to hex numbers Date: Tue, 23 Jan 2024 09:33:12 +0100 Message-Id: <20240123083312.20808-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788869560131718891 X-GMAIL-MSGID: 1788869560131718891 |
Series |
dt-bindings: timer: narrow regex for unit address to hex numbers
|
|
Commit Message
Krzysztof Kozlowski
Jan. 23, 2024, 8:33 a.m. UTC
Regular expression used to match the unit address part should not allow
non-hex numbers.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
.../devicetree/bindings/timer/arm,arch_timer_mmio.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Tue, Jan 23, 2024 at 09:33:12AM +0100, Krzysztof Kozlowski wrote: > Regular expression used to match the unit address part should not allow > non-hex numbers. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > .../devicetree/bindings/timer/arm,arch_timer_mmio.yaml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml b/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml > index 7a4a6ab85970..5b9fda2a81e0 100644 > --- a/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml > +++ b/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml > @@ -60,7 +60,7 @@ properties: > be implemented in an always-on power domain." > > patternProperties: > - '^frame@[0-9a-z]*$': > + '^frame@[0-9a-f]*$': Technically, it should be '+' rather than '*'. But I'm pretty sure generically we check that node name can't end with '@'.
On Tue, 23 Jan 2024 09:33:12 +0100, Krzysztof Kozlowski wrote: > Regular expression used to match the unit address part should not allow > non-hex numbers. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > .../devicetree/bindings/timer/arm,arch_timer_mmio.yaml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Acked-by: Rob Herring <robh@kernel.org>
diff --git a/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml b/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml index 7a4a6ab85970..5b9fda2a81e0 100644 --- a/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml +++ b/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml @@ -60,7 +60,7 @@ properties: be implemented in an always-on power domain." patternProperties: - '^frame@[0-9a-z]*$': + '^frame@[0-9a-f]*$': type: object additionalProperties: false description: A timer node has up to 8 frame sub-nodes, each with the following properties.