[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251230113655.1817727-1-safinaskar@gmail.com>
Date: Tue, 30 Dec 2025 14:36:16 +0300
From: Askar Safin <safinaskar@...il.com>
To: nfraprado@...labora.com
Cc: Tim.Bird@...y.com,
bhelgaas@...gle.com,
dan.carpenter@...aro.org,
davidgow@...gle.com,
devicetree@...r.kernel.org,
dianders@...omium.org,
gregkh@...uxfoundation.org,
groeck@...omium.org,
kernel@...labora.com,
kernelci@...ts.linux.dev,
linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org,
linux-pci@...r.kernel.org,
linux-usb@...r.kernel.org,
robh+dt@...nel.org,
saravanak@...gle.com,
shuah@...nel.org
Subject: Re: [PATCH v4 3/3] kselftest: devices: Add sample board file for XPS 13 9300
"NĂcolas F. R. A. Prado" <nfraprado@...labora.com>:
> While I understand it might be inconvenient that this is the only file
As well as I understand, it is intended that more files will be added
to tools/testing/selftests/devices/boards with various vendor names and
product names.
So I did some further research. I grepped Linux source and found some
vendor names and product names with undesirable chars.
Let's go.
/rbt/linux/arch/x86/kernel/apm_32.c:2097: DMI_MATCH(DMI_PRODUCT_NAME, "PC-PJ/AX"),
/rbt/linux/arch/x86/kernel/reboot.c:396: DMI_MATCH(DMI_PRODUCT_NAME, "PowerEdge 300/"),
/rbt/linux/drivers/platform/x86/samsung-laptop.c:1633: DMI_MATCH(DMI_PRODUCT_NAME, "R40/R41"),
Here we see / chars, which are simply forbidden in Linux filesystems.
I also found a lot of others undesirable chars, such as "(" ")" "'" "&" "#" "*",
which surely will break a lot of tools. In particular, "'" is used in bash
to quote something verbatim.
Here is extended result of my research:
https://zerobin.net/?d1f2655a979acd3f#oBhwIedQvBL/iB9Src65aRYuyjaye2GQBNL3+6yfvGg=
Unfortunately, I'm not sure which of these names refer to whole "board",
and which of them refer to merely some particular device, such as USB device.
BUT for 3 instances of / chars given in the top of this email I'm totally
sure that they refer to whole "boards", so we have at least 3 totally
legitime cases, where we have / in product name, which simply cannot appear
in UNIX filesystem at all.
So, conclusion: if it is indeed intended that further examples of boards
will be added to tools/testing/selftests/devices/boards, then they
will contain all sorts of undesirable chars and notably "/", which cannot
appear in filename at all.
For all these reasons I ask you to change name convention for this directory.
For example, use some kind of sanitized vendor/product names.
> there are
> tons of dt-binding filenames containing commas in the tree.
Okay, I agree with this point. There already are a lot of files with commas.
But I still don't like spaces and all sorts of characters, which are present
in DMI vendor names and product names ( "(" ")" "'" "&" "#" "*" "/" ).
--
Askar Safin
Powered by blists - more mailing lists