Skip to contentSkip to conversation

platform/x86/dell-laptop: Add another Dell laptop to the DMI whitelist

PATCH In review Erik Andren 3 participants 13 messages Feb 14, 2010 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/x86/dell-laptop: Add another Dell laptop to the DMI whitelist

The Latitude C640 has another variation of dell in its DMI vendor entry. Add it to the whitelist in order to enjoy the sweet fruits of software backlight toggling.

---
 drivers/platform/x86/dell-laptop.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
drivers/platform/x86/dell-laptop.c +7 -0
index 3780994..b5246f1 100644
@@ -79,6 +79,13 @@ static const struct dmi_system_id __initdata dell_device_table[] = {
 			DMI_MATCH(DMI_CHASSIS_TYPE, "8"),
 		},
 	},
+	{
+		.ident = "Dell Computer Corporation",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Computer Corporation"),
+			DMI_MATCH(DMI_CHASSIS_TYPE, "8"),
+		},
+	},
 	{ }
 };
 
Signature · 1 line
1.6.3.3
#1 lore raw
Quoted 3 lines

The Latitude C640 has another variation of dell in its DMI vendor entry. Add it to the whitelist in order to enjoy the sweet fruits of software backlight toggling.

Definitely not only this one. E.g. my Inspiron 8000 (P3/700) has (dmidecode):

Handle 0x0300, DMI type 3, 13 bytes
Chassis Information
Manufacturer: Dell Computer Corporation
Type: Portable

which, if "Portable" happens to be "8", means that it would match.

So:
- do all older matching machines grok this?
- if not, do something about it? ;)

[I should probably just offer myself to be a guinea pig]

Thanks for a very interesting piece of work!

Andreas Mohr

#2 lore raw
In reply to Erik Andren
Quoted 3 lines

The Latitude C640 has another variation of dell in its DMI vendor entry. Add it to the whitelist in order to enjoy the sweet fruits of software backlight toggling.

Definitely not only this one. E.g. my Inspiron 8000 (P3/700) has (dmidecode):

Handle 0x0300, DMI type 3, 13 bytes
Chassis Information
Manufacturer: Dell Computer Corporation
Type: Portable

which, if "Portable" happens to be "8", means that it would match.

So:
- do all older matching machines grok this?
- if not, do something about it? ;)

[I should probably just offer myself to be a guinea pig]

Thanks for a very interesting piece of work!

Andreas Mohr

#3 lore raw
Quoted 8 lines · Andreas Mohr

Definitely not only this one. E.g. my Inspiron 8000 (P3/700) has (dmidecode):

Handle 0x0300, DMI type 3, 13 bytes
Chassis Information
Manufacturer: Dell Computer Corporation
Type: Portable

which, if "Portable" happens to be "8", means that it would match.

8 should be portable, yes. 9 would be laptop (and 10 notebook), but I haven't seen any examples of those in Dells.

Quoted 2 lines

So:
- do all older matching machines grok this?

The dcdbas call should fail if they don't, so I think we're ok.

Signature · 1 line
Matthew Garrett | [email protected]
#4 lore raw
In reply to Andreas Mohr
Quoted 8 lines · Andreas Mohr

Definitely not only this one. E.g. my Inspiron 8000 (P3/700) has (dmidecode):

Handle 0x0300, DMI type 3, 13 bytes
Chassis Information
Manufacturer: Dell Computer Corporation
Type: Portable

which, if "Portable" happens to be "8", means that it would match.

8 should be portable, yes. 9 would be laptop (and 10 notebook), but I haven't seen any examples of those in Dells.

Quoted 2 lines

So:
- do all older matching machines grok this?

The dcdbas call should fail if they don't, so I think we're ok.

Signature · 1 line
Matthew Garrett | [email protected]
#5 lore raw
In reply to Erik Andren
Quoted 2 lines · Erik Andren

The Latitude C640 has another variation of dell in its DMI vendor entry. Add it to the whitelist in order to enjoy the sweet fruits of software backlight toggling.

Thanks, picked up for .34.

Signature · 1 line
Matthew Garrett | [email protected]
#6 lore raw
In reply to Erik Andren
Quoted 2 lines · Erik Andren

The Latitude C640 has another variation of dell in its DMI vendor entry. Add it to the whitelist in order to enjoy the sweet fruits of software backlight toggling.

Thanks, picked up for .34.

Signature · 1 line
Matthew Garrett | [email protected]
#7 lore raw

2010/2/14 Matthew Garrett <[email protected]>:

Quoted 6 lines · Erik Andren
Quoted 2 lines

The Latitude C640 has another variation of dell in its DMI vendor entry. Add it to the whitelist in order to enjoy the sweet fruits of software backlight toggling.

Thanks, picked up for .34.

Darn, I forgot to add another module alias.
Shall I respin the whole patch or create another one depending on the old one?

Best regards,
Erik

Quoted 3 lines

--
Matthew Garrett | [email protected]

#8 lore raw
In reply to Matthew Garrett

2010/2/14 Matthew Garrett <[email protected]>:

Quoted 6 lines · Erik Andren
Quoted 2 lines

The Latitude C640 has another variation of dell in its DMI vendor entry. Add it to the whitelist in order to enjoy the sweet fruits of software backlight toggling.

Thanks, picked up for .34.

Darn, I forgot to add another module alias.
Shall I respin the whole patch or create another one depending on the old one?

Best regards,
Erik

Quoted 3 lines

--
Matthew Garrett | [email protected]

#9 lore raw
Quoted 2 lines · Erik Andrén

Darn, I forgot to add another module alias.
Shall I respin the whole patch or create another one depending on the old one?

Oh, good point! I can add that myself and merge it in.

Signature · 1 line
Matthew Garrett | [email protected]
#10 lore raw
In reply to Erik Andrén
Quoted 2 lines · Erik Andrén

Darn, I forgot to add another module alias.
Shall I respin the whole patch or create another one depending on the old one?

Oh, good point! I can add that myself and merge it in.

Signature · 1 line
Matthew Garrett | [email protected]
#11 lore raw

2010/2/14 Matthew Garrett <[email protected]>:

Quoted 7 lines · Erik Andrén
Quoted 3 lines

Darn, I forgot to add another module alias.
Shall I respin the whole patch or create another one depending on the old one?

Oh, good point! I can add that myself and merge it in.

Thanks!
FWIW I've verified that the following string works:
MODULE_ALIAS("dmi:*svnDellComputerCorporation:*:ct8:*");

Best regards,
Erik

Quoted 3 lines

--
Matthew Garrett | [email protected]

#12 lore raw
In reply to Matthew Garrett

2010/2/14 Matthew Garrett <[email protected]>:

Quoted 7 lines · Erik Andrén
Quoted 3 lines

Darn, I forgot to add another module alias.
Shall I respin the whole patch or create another one depending on the old one?

Oh, good point! I can add that myself and merge it in.

Thanks!
FWIW I've verified that the following string works:
MODULE_ALIAS("dmi:*svnDellComputerCorporation:*:ct8:*");

Best regards,
Erik

Quoted 3 lines

--
Matthew Garrett | [email protected]