]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: alienware-wmi-wmax: Improve platform profile probe
authorKurt Borja <kuurtb@gmail.com>
Sat, 29 Mar 2025 07:32:22 +0000 (04:32 -0300)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 11 Apr 2025 10:04:46 +0000 (13:04 +0300)
commit32b6372ddd4385a47a6a4b6ccff0c22b7be8765a
treee643ff5314b5c43b012b1c52aa838f35432f9c01
parent77bb2ec55700ee3af0cd902398fa903363826679
platform/x86: alienware-wmi-wmax: Improve platform profile probe

Get and store the AWCC system description in alienware_awcc_setup()
instead of awcc_platform_profile_probe() and get the correct offset by
iterating through each member of the system_description.

Then add a debug message for unmatched profiles and replace set_bit()
with it's non-atomic version __set_bit() because the choices bitmap only
belongs to this thread.

In the process also check for a malformed system description by defining
an arbitrary limit of resource count.

Reviewed-by: Armin Wolf <W_Armin@gmx.de>
Signed-off-by: Kurt Borja <kuurtb@gmail.com>
Link: https://lore.kernel.org/r/20250329-hwm-v7-5-a14ea39d8a94@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/dell/alienware-wmi-wmax.c