* [PATCH v2 1/2] alienware-wmi: Fix X Series and G Series quirks
@ 2024-12-08 0:26 Kurt Borja
2024-12-08 0:30 ` [PATCH v2 2/2] alienware-wmi: Adds support to Alienware m16 R1 AMD Kurt Borja
2024-12-10 14:39 ` [PATCH v2 1/2] alienware-wmi: Fix X Series and G Series quirks Ilpo Järvinen
0 siblings, 2 replies; 4+ messages in thread
From: Kurt Borja @ 2024-12-08 0:26 UTC (permalink / raw)
To: platform-driver-x86
Cc: ilpo.jarvinen, Dell.Client.Kernel, hdegoede, linux-kernel,
Kurt Borja, Armin Wolf
Devices that are known to support the WMI thermal interface do not
support the legacy LED control interface. Make `.num_zones = 0` and
avoid calling alienware_zone_init() if that's the case.
Fixes: 9f6c43041552 ("alienware-wmi: added platform profile support")
Fixes: 1c1eb70e7d23 ("alienware-wmi: extends the list of supported models")
Suggested-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Armin Wolf <W_Armin@gmx.de>
Signed-off-by: Kurt Borja <kuurtb@gmail.com>
---
Suggested here:
[1] https://lore.kernel.org/platform-driver-x86/38399b6a-e31c-4b99-a10e-01dc20649c24@gmx.de/
v2:
- Remove extra line from commit message
---
drivers/platform/x86/dell/alienware-wmi.c | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/drivers/platform/x86/dell/alienware-wmi.c b/drivers/platform/x86/dell/alienware-wmi.c
index 77465ed9b449..e69bf9a7b6c8 100644
--- a/drivers/platform/x86/dell/alienware-wmi.c
+++ b/drivers/platform/x86/dell/alienware-wmi.c
@@ -190,7 +190,7 @@ static struct quirk_entry quirk_asm201 = {
};
static struct quirk_entry quirk_g_series = {
- .num_zones = 2,
+ .num_zones = 0,
.hdmi_mux = 0,
.amplifier = 0,
.deepslp = 0,
@@ -199,7 +199,7 @@ static struct quirk_entry quirk_g_series = {
};
static struct quirk_entry quirk_x_series = {
- .num_zones = 2,
+ .num_zones = 0,
.hdmi_mux = 0,
.amplifier = 0,
.deepslp = 0,
@@ -687,6 +687,9 @@ static void alienware_zone_exit(struct platform_device *dev)
{
u8 zone;
+ if (!quirks->num_zones)
+ return;
+
sysfs_remove_group(&dev->dev.kobj, &zone_attribute_group);
led_classdev_unregister(&global_led);
if (zone_dev_attrs) {
@@ -1229,9 +1232,11 @@ static int __init alienware_wmi_init(void)
goto fail_prep_thermal_profile;
}
- ret = alienware_zone_init(platform_device);
- if (ret)
- goto fail_prep_zones;
+ if (quirks->num_zones > 0) {
+ ret = alienware_zone_init(platform_device);
+ if (ret)
+ goto fail_prep_zones;
+ }
return 0;
--
2.47.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH v2 2/2] alienware-wmi: Adds support to Alienware m16 R1 AMD
2024-12-08 0:26 [PATCH v2 1/2] alienware-wmi: Fix X Series and G Series quirks Kurt Borja
@ 2024-12-08 0:30 ` Kurt Borja
2024-12-08 0:33 ` Armin Wolf
2024-12-10 14:39 ` [PATCH v2 1/2] alienware-wmi: Fix X Series and G Series quirks Ilpo Järvinen
1 sibling, 1 reply; 4+ messages in thread
From: Kurt Borja @ 2024-12-08 0:30 UTC (permalink / raw)
To: platform-driver-x86
Cc: ilpo.jarvinen, Dell.Client.Kernel, hdegoede, linux-kernel,
Kurt Borja, Cihan Ozakca
Adds support to Alienware m16 R1 AMD.
Tested-by: Cihan Ozakca <cozakca@outlook.com>
Signed-off-by: Kurt Borja <kuurtb@gmail.com>
---
v2:
- Added this patch
---
drivers/platform/x86/dell/alienware-wmi.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/platform/x86/dell/alienware-wmi.c b/drivers/platform/x86/dell/alienware-wmi.c
index e69bf9a7b6c8..341d01d3e3e4 100644
--- a/drivers/platform/x86/dell/alienware-wmi.c
+++ b/drivers/platform/x86/dell/alienware-wmi.c
@@ -241,6 +241,15 @@ static const struct dmi_system_id alienware_quirks[] __initconst = {
},
.driver_data = &quirk_asm201,
},
+ {
+ .callback = dmi_matched,
+ .ident = "Alienware m16 R1 AMD",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Alienware"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "Alienware m16 R1 AMD"),
+ },
+ .driver_data = &quirk_x_series,
+ },
{
.callback = dmi_matched,
.ident = "Alienware m17 R5",
--
2.47.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH v2 2/2] alienware-wmi: Adds support to Alienware m16 R1 AMD
2024-12-08 0:30 ` [PATCH v2 2/2] alienware-wmi: Adds support to Alienware m16 R1 AMD Kurt Borja
@ 2024-12-08 0:33 ` Armin Wolf
0 siblings, 0 replies; 4+ messages in thread
From: Armin Wolf @ 2024-12-08 0:33 UTC (permalink / raw)
To: Kurt Borja, platform-driver-x86
Cc: ilpo.jarvinen, Dell.Client.Kernel, hdegoede, linux-kernel,
Cihan Ozakca
Am 08.12.24 um 01:30 schrieb Kurt Borja:
> Adds support to Alienware m16 R1 AMD.
Reviewed-by: Armin Wolf <W_Armin@gmx.de>
> Tested-by: Cihan Ozakca <cozakca@outlook.com>
> Signed-off-by: Kurt Borja <kuurtb@gmail.com>
> ---
> v2:
> - Added this patch
> ---
> drivers/platform/x86/dell/alienware-wmi.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/drivers/platform/x86/dell/alienware-wmi.c b/drivers/platform/x86/dell/alienware-wmi.c
> index e69bf9a7b6c8..341d01d3e3e4 100644
> --- a/drivers/platform/x86/dell/alienware-wmi.c
> +++ b/drivers/platform/x86/dell/alienware-wmi.c
> @@ -241,6 +241,15 @@ static const struct dmi_system_id alienware_quirks[] __initconst = {
> },
> .driver_data = &quirk_asm201,
> },
> + {
> + .callback = dmi_matched,
> + .ident = "Alienware m16 R1 AMD",
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "Alienware"),
> + DMI_MATCH(DMI_PRODUCT_NAME, "Alienware m16 R1 AMD"),
> + },
> + .driver_data = &quirk_x_series,
> + },
> {
> .callback = dmi_matched,
> .ident = "Alienware m17 R5",
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/2] alienware-wmi: Fix X Series and G Series quirks
2024-12-08 0:26 [PATCH v2 1/2] alienware-wmi: Fix X Series and G Series quirks Kurt Borja
2024-12-08 0:30 ` [PATCH v2 2/2] alienware-wmi: Adds support to Alienware m16 R1 AMD Kurt Borja
@ 2024-12-10 14:39 ` Ilpo Järvinen
1 sibling, 0 replies; 4+ messages in thread
From: Ilpo Järvinen @ 2024-12-10 14:39 UTC (permalink / raw)
To: platform-driver-x86, Kurt Borja
Cc: Dell.Client.Kernel, hdegoede, linux-kernel, Armin Wolf
On Sat, 07 Dec 2024 21:26:55 -0300, Kurt Borja wrote:
> Devices that are known to support the WMI thermal interface do not
> support the legacy LED control interface. Make `.num_zones = 0` and
> avoid calling alienware_zone_init() if that's the case.
>
>
Thank you for your contribution, it has been applied to my local
review-ilpo-fixes branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-fixes branch only once I've pushed my
local branch there, which might take a while.
The list of commits applied:
[1/2] alienware-wmi: Fix X Series and G Series quirks
commit: c1043cdb019ed4d053d673e62b553a5cea1a287d
[2/2] alienware-wmi: Adds support to Alienware m16 R1 AMD
commit: 54a8cada2f3d7efb4a7920807473d89c442d9c45
--
i.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-12-10 14:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-08 0:26 [PATCH v2 1/2] alienware-wmi: Fix X Series and G Series quirks Kurt Borja
2024-12-08 0:30 ` [PATCH v2 2/2] alienware-wmi: Adds support to Alienware m16 R1 AMD Kurt Borja
2024-12-08 0:33 ` Armin Wolf
2024-12-10 14:39 ` [PATCH v2 1/2] alienware-wmi: Fix X Series and G Series quirks Ilpo Järvinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox