Re: [PATCH v6 1/1] PCI/sysfs: Expose PCIe device serial number
From: Thomas Weißschuh
Date: Mon Jul 21 2025 - 07:57:42 EST
On Fri, Jul 18, 2025 at 12:32:29PM -0700, Matthew Wood wrote:
> Add a single sysfs read-only interface for reading PCIe device serial
> numbers from userspace in a programmatic way. This device attribute
> uses the same hexadecimal 1-byte dashed formatting as lspci serial number
> capability output. If a device doesn't support the serial number
> capability, the serial_number sysfs attribute will not be visible.
>
> Signed-off-by: Matthew Wood <thepacketgeek@xxxxxxxxx>
> Reviewed-by: Mario Limonciello <superm1@xxxxxxxxxx>
Reviewed-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
> ---
> Documentation/ABI/testing/sysfs-bus-pci | 9 +++++++++
> drivers/pci/pci-sysfs.c | 27 ++++++++++++++++++++++---
> 2 files changed, 33 insertions(+), 3 deletions(-)
(...)