From: Yangyu Chen <cyy@cyyself.name>
To: Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>
Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org,
Wende Tan <twd2.me@gmail.com>, Soha Jin <soha@lohu.info>,
Hongren Zheng <i@zenithal.me>, Yangyu Chen <cyy@cyyself.name>
Subject: [PATCH 2/2] docs: dt: allow case-insensitive RISC-V ISA string
Date: Tue, 25 Apr 2023 20:00:16 +0800 [thread overview]
Message-ID: <tencent_221A82C2DAF38E66B85B313221958DDD7C08@qq.com> (raw)
In-Reply-To: <20230425120016.187010-1-cyy@cyyself.name>
After allowing case-insensitive ISA string parsing in the kernel code,
the docs should be updated.
Signed-off-by: Yangyu Chen <cyy@cyyself.name>
---
Documentation/devicetree/bindings/riscv/cpus.yaml | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/riscv/cpus.yaml b/Documentation/devicetree/bindings/riscv/cpus.yaml
index 001931d526ec..70afd1e8638b 100644
--- a/Documentation/devicetree/bindings/riscv/cpus.yaml
+++ b/Documentation/devicetree/bindings/riscv/cpus.yaml
@@ -79,11 +79,10 @@ properties:
User-Level ISA document, available from
https://riscv.org/specifications/
- While the isa strings in ISA specification are case
- insensitive, letters in the riscv,isa string must be all
- lowercase to simplify parsing.
+ According to RISC-V ISA specification, the isa strings are
+ case insensitive.
$ref: "/schemas/types.yaml#/definitions/string"
- pattern: ^rv(?:64|32)imaf?d?q?c?b?k?j?p?v?h?(?:[hsxz](?:[a-z])+)?(?:_[hsxz](?:[a-z])+)*$
+ pattern: (?i)^rv(?:64|32)imaf?d?q?c?b?k?j?p?v?h?(?:[hsxz](?:[a-z])+)?(?:_[hsxz](?:[a-z])+)*$
# RISC-V requires 'timebase-frequency' in /cpus, so disallow it here
timebase-frequency: false
--
2.40.0
next prev parent reply other threads:[~2023-04-25 12:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230425120016.187010-1-cyy@cyyself.name>
2023-04-25 12:00 ` [PATCH 1/2] riscv: allow case-insensitive ISA string parsing Yangyu Chen
2023-04-25 12:45 ` Yangyu Chen
2023-04-26 18:54 ` Conor Dooley
2023-04-27 7:53 ` Andrew Jones
2023-04-27 9:04 ` Conor Dooley
2023-04-27 9:25 ` Andrew Jones
2023-04-27 9:36 ` Yangyu Chen
2023-04-27 10:00 ` Conor Dooley
2023-04-27 12:47 ` Yangyu Chen
2023-04-27 17:28 ` Conor Dooley
2023-04-25 12:00 ` Yangyu Chen [this message]
2023-04-25 13:32 ` [PATCH 2/2] docs: dt: allow case-insensitive RISC-V ISA string Conor Dooley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_221A82C2DAF38E66B85B313221958DDD7C08@qq.com \
--to=cyy@cyyself.name \
--cc=aou@eecs.berkeley.edu \
--cc=i@zenithal.me \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=soha@lohu.info \
--cc=twd2.me@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®