[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20250308-awcc-uid-v1-2-6360892d8b95@gmail.com>
Date: Sat, 08 Mar 2025 17:05:29 -0500
From: Kurt Borja <kuurtb@...il.com>
To: Armin Wolf <W_Armin@....de>, Hans de Goede <hdegoede@...hat.com>,
Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
Cc: platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org,
Dell.Client.Kernel@...l.com, Kurt Borja <kuurtb@...il.com>
Subject: [PATCH RFC 2/2] platform/x86: alienware-wmi-wmax: Check for AWCC
support using _UID
The WMAX _UID of all devices that support the AWCC is "AWCC". This
includes the following devices which were manually by reading their ACPI
tables:
- Dell G16 7630
- Dell G5 5505 SE
- Alienware m16 R1
- Alienware m17 R5 AMD
- Alienware x15 R2
- Alienware 17 R5
- Alienware Aurora R12
- Alienware Aurora Ryzen Edition
And possibly many more, if not all devices with this interface.
Add a check for "AWCC" _UID in wmax_wmi_probe() as a last resort test
for support.
Signed-off-by: Kurt Borja <kuurtb@...il.com>
---
drivers/platform/x86/dell/alienware-wmi-wmax.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/platform/x86/dell/alienware-wmi-wmax.c b/drivers/platform/x86/dell/alienware-wmi-wmax.c
index 46d11b200820cdbaa841fc97e33b339fca42104e..529041f419165aa896a5ce49f889e29901d5b80e 100644
--- a/drivers/platform/x86/dell/alienware-wmi-wmax.c
+++ b/drivers/platform/x86/dell/alienware-wmi-wmax.c
@@ -1422,6 +1422,9 @@ static int wmax_wmi_probe(struct wmi_device *wdev, const void *context)
};
int ret;
+ if (!awcc && !strncmp(wmidev_get_acpi_device_uid(wdev), "AWCC", 4))
+ awcc = &generic_quirks;
+
if (awcc)
ret = alienware_awcc_setup(wdev);
else
--
2.48.1
Powered by blists - more mailing lists