]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
platform/x86: dell-sysman: add support for alienware products
authorCrag Wang <crag_wang@dell.com>
Fri, 4 Oct 2024 15:27:58 +0000 (23:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Nov 2024 00:52:36 +0000 (01:52 +0100)
[ Upstream commit a561509b4187a8908eb7fbb2d1bf35bbc20ec74b ]

Alienware supports firmware-attributes and has its own OEM string.

Signed-off-by: Crag Wang <crag_wang@dell.com>
Link: https://lore.kernel.org/r/20241004152826.93992-1-crag_wang@dell.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/dell/dell-wmi-sysman/sysman.c

index 907fde53e95c45f512b9d9c4f72defb060e4e543..47f8c5a63343dc59ec534d867985b90f3c207de3 100644 (file)
@@ -524,6 +524,7 @@ static int __init sysman_init(void)
        int ret = 0;
 
        if (!dmi_find_device(DMI_DEV_TYPE_OEM_STRING, "Dell System", NULL) &&
+           !dmi_find_device(DMI_DEV_TYPE_OEM_STRING, "Alienware", NULL) &&
            !dmi_find_device(DMI_DEV_TYPE_OEM_STRING, "www.dell.com", NULL)) {
                pr_err("Unable to run on non-Dell system\n");
                return -ENODEV;