Skip to contentSkip to conversation

dell-laptop: Add another Dell laptop to the DMI whitelist

PATCH Applied Alex Hung 3 participants 3 messages Feb 16, 2017 – Feb 17, 2017 x86 platform drivers

lore
Share & tools
lore

Alex Hung

author
#0 lore raw

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

This is to support Latitude 7480 and many other newer Dell laptops.

---
 drivers/platform/x86/dell-laptop.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/platform/x86/dell-laptop.c +6 -0
index 277656c..6174854 100644
@@ -109,6 +109,12 @@ static const struct dmi_system_id dell_device_table[] __initconst = {
 		},
 	},
 	{
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+			DMI_MATCH(DMI_CHASSIS_TYPE, "10"), /*Notebook*/
+		},
+	},
+	{
 		.ident = "Dell Computer Corporation",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "Dell Computer Corporation"),
Signature · 1 line
2.10.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · On Thursday 16 February 2017 20:58:03 Alex Hung wrote:

This is to support Latitude 7480 and many other newer Dell laptops.

Looks good. Maybe should be this change backported to stable?

Quoted 21 lines
---
 drivers/platform/x86/dell-laptop.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/platform/x86/dell-laptop.c +6 -0
index 277656c..6174854 100644
@@ -109,6 +109,12 @@ static const struct dmi_system_id dell_device_table[] __initconst = {
 		},
 	},
 	{
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+			DMI_MATCH(DMI_CHASSIS_TYPE, "10"), /*Notebook*/
+		},
+	},
+	{
 		.ident = "Dell Computer Corporation",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "Dell Computer Corporation"),
Signature · 2 lines
Pali Rohár
[email protected]
Applied
#2 lore raw
Quoted 6 lines · Pali Rohár
Quoted 3 lines · On Thursday 16 February 2017 20:58:03 Alex Hung wrote:

This is to support Latitude 7480 and many other newer Dell laptops.

Looks good. Maybe should be this change backported to stable?

Applied.

I'd want to see testing on the previous kernels to ensure all the necessary support for those laptops has also been backported before sending DMI matches back. We don't want to end up with just the DMI matches in stable kernels, but inadvertently omit some functional change those machines require which have been added since the stable release.

Thanks,

Signature · 2 lines
Darren Hart
Intel Open Source Technology Center