public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] Check for serial key in dmi_name_in_vendors
@ 2008-10-25  0:21 Alok Kataria
  2008-10-31 22:50 ` H. Peter Anvin
  0 siblings, 1 reply; 3+ messages in thread
From: Alok Kataria @ 2008-10-25  0:21 UTC (permalink / raw)
  To: H. Peter Anvin
  Cc: Andi Kleen, Ingo Molnar, LKML, the arch/x86 maintainers,
	Daniel Hecht

Add serial key as a field to check for in dmi_name_in_vendors.

From: Alok N Kataria <akataria@vmware.com>

In some user configured cases, VMware may choose not to put a VMware specific
DMI string, but the serial key is always there and is VMware specific.
Add that too to check for in the dmi_name_in_vendors function.

Signed-off-by: Alok N Kataria <akataria@vmware.com>
---

 drivers/firmware/dmi_scan.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c
index 3e526b6..14fcb52 100644
--- a/drivers/firmware/dmi_scan.c
+++ b/drivers/firmware/dmi_scan.c
@@ -476,7 +476,8 @@ int dmi_name_in_vendors(const char *str)
 {
 	static int fields[] = { DMI_BIOS_VENDOR, DMI_BIOS_VERSION, DMI_SYS_VENDOR,
 				DMI_PRODUCT_NAME, DMI_PRODUCT_VERSION, DMI_BOARD_VENDOR,
-				DMI_BOARD_NAME, DMI_BOARD_VERSION, DMI_NONE };
+				DMI_BOARD_NAME, DMI_BOARD_VERSION, DMI_PRODUCT_SERIAL,
+				DMI_NONE };
 	int i;
 	for (i = 0; fields[i] != DMI_NONE; i++) {
 		int f = fields[i];



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

end of thread, other threads:[~2008-11-01  2:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-25  0:21 [PATCH 1/4] Check for serial key in dmi_name_in_vendors Alok Kataria
2008-10-31 22:50 ` H. Peter Anvin
2008-11-01  2:01   ` Alok Kataria

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox