mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/1] firmware: dmi-id: add product_family to modalias as pf
@ 2025-08-14  6:44 Crag Wang
  2025-12-22 10:03 ` Jean DELVARE
  0 siblings, 1 reply; 2+ messages in thread
From: Crag Wang @ 2025-08-14  6:44 UTC (permalink / raw)
  To: Jean Delvare; +Cc: dell.client.kernel, crag.wang, Crag Wang, linux-kernel

Some devices require product_family information to trigger
conditional actions when the value matches a predefined criterion

$ cat /sys/class/dmi/id/product_family
Dell Pro Max Desktops

$ udevadm info -q all --path=/sys/class/dmi/id | grep MODALIAS
E: MODALIAS=dmi:bvnDellInc.:bvr0.59.39:bd12/16/2024:br0.59:efr0.0:svnDellInc.:pfDellProMaxDesktops:pnDellProMaxMicroFCM2250:pvr:rvnDellInc.:rn:rvr:cvnDellInc.:ct3:cvr:sku0D14:

$ cat /sys/class/dmi/id/modalias
dmi:bvnDellInc.:bvr0.59.39:bd12/16/2024:br0.59:efr0.0:svnDellInc.:pfDellProMaxDesktops:pnDellProMaxMicroFCM2250:pvr:rvnDellInc.:rn:rvr:cvnDellInc.:ct3:cvr:sku0D14:

Signed-off-by: Crag Wang <crag0715@gmail.com>
---
 drivers/firmware/dmi-id.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/firmware/dmi-id.c b/drivers/firmware/dmi-id.c
index d19c78a78ae3..284652d75cc7 100644
--- a/drivers/firmware/dmi-id.c
+++ b/drivers/firmware/dmi-id.c
@@ -87,6 +87,7 @@ static ssize_t get_modalias(char *buffer, size_t buffer_size)
 		{ "br",  DMI_BIOS_RELEASE },
 		{ "efr", DMI_EC_FIRMWARE_RELEASE },
 		{ "svn", DMI_SYS_VENDOR },
+		{ "pf",  DMI_PRODUCT_FAMILY },
 		{ "pn",  DMI_PRODUCT_NAME },
 		{ "pvr", DMI_PRODUCT_VERSION },
 		{ "rvn", DMI_BOARD_VENDOR },
-- 
2.43.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-12-22 10:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-14  6:44 [PATCH 1/1] firmware: dmi-id: add product_family to modalias as pf Crag Wang
2025-12-22 10:03 ` Jean DELVARE

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®