]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: dell-smbios-wmi: Disable userspace interface if missing hotfix
authorMario Limonciello <mario.limonciello@dell.com>
Fri, 17 Nov 2017 04:13:12 +0000 (22:13 -0600)
committerDarren Hart (VMware) <dvhart@infradead.org>
Mon, 20 Nov 2017 20:38:43 +0000 (12:38 -0800)
commit33ba714fe4e5645060ecec6cd3e213ff488e47ae
tree4950a7b7da05a1b76e52ba02278fab796faf302b
parent8fb74d3e77a214363c7682f4c0932e759a39fa28
platform/x86: dell-smbios-wmi: Disable userspace interface if missing hotfix

The Dell SMBIOS WMI interface will fail for some more complex calls unless
a WMI hotfix has been included.  Most platforms have this fix available in
a maintenance BIOS release.  In the case the driver is loaded on a
platform without this fix, disable the userspace interface.

A hotfix indicator is present in the dell-wmi-descriptor that represents
whether or not more complex calls will work properly.

"Simple" calls such as those used by dell-laptop and dell-wmi will continue
to work properly so dell-smbios-wmi should not be blocked from binding and
being used as the dell-smbios dispatcher.

Suggested-by: Girish Prakash <girish.prakash@dell.com>
Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/dell-smbios-wmi.c
drivers/platform/x86/dell-wmi-descriptor.c
drivers/platform/x86/dell-wmi-descriptor.h