From: Hans de Goede <hdegoede@redhat.com>
To: "SungHwan Jung" <onenowy@gmail.com>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Lee, Chun-Yi" <jlee@suse.com>,
"Jean Delvare" <jdelvare@suse.com>,
"Guenter Roeck" <linux@roeck-us.net>
Cc: platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org
Subject: Re: [PATCH v4 2/3] platform/x86: acer-wmi: add fan speed monitoring for Predator PHN16-71
Date: Mon, 27 Nov 2023 13:15:30 +0100 [thread overview]
Message-ID: <13bee0fc-2a32-4f6d-ba5d-cac99882686a@redhat.com> (raw)
In-Reply-To: <20231124094122.100707-3-onenowy@gmail.com>
Hi,
Thank you for your patch.
On 11/24/23 10:41, SungHwan Jung wrote:
> Support CPU and GPU fan speed monitoring through WMI for Predator
> PHN16-71.
>
> This patch depends on patch "platform/x86: acer-wmi: Add platform
> profile and mode key support for Predator PHN16-71"
>
> Signed-off-by: SungHwan Jung <onenowy@gmail.com>
> ---
> drivers/platform/x86/Kconfig | 1 +
> drivers/platform/x86/acer-wmi.c | 104 +++++++++++++++++++++++++++++++-
> 2 files changed, 103 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
> index 7e69fdacc..caf3f4c6b 100644
> --- a/drivers/platform/x86/Kconfig
> +++ b/drivers/platform/x86/Kconfig
<snip>
> @@ -2505,6 +2535,9 @@ static int acer_platform_probe(struct platform_device *device)
> goto error_platform_profile;
> }
>
> + if (has_cap(ACER_CAP_FAN_SPEED_READ))
> + err = acer_wmi_hwmon_init();
> +
> return err;
>
> error_rfkill:
This has the same error-handling problem as patch 1/3. I have fixed
this up in the same manner while merging this, resulting in:
if (has_cap(ACER_CAP_PLATFORM_PROFILE)) {
err = acer_platform_profile_setup();
if (err)
goto error_platform_profile;
}
if (has_cap(ACER_CAP_FAN_SPEED_READ)) {
err = acer_wmi_hwmon_init();
if (err)
goto error_hwmon;
}
return 0;
error_hwmon:
if (platform_profile_support)
platform_profile_remove();
error_platform_profile:
acer_rfkill_exit();
error_rfkill:
if (has_cap(ACER_CAP_BRIGHTNESS))
acer_backlight_exit();
...
Thank you for your patch, I've applied this patch to my review-hans
branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans
Note it will show up in my review-hans branch once I've pushed my
local branch there, which might take a while.
Once I've run some tests on this branch the patches there will be
added to the platform-drivers-x86/for-next branch and eventually
will be included in the pdx86 pull-request to Linus for the next
merge-window.
Regards,
Hans
next prev parent reply other threads:[~2023-11-27 12:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-24 9:41 [PATCH v4 0/3] Add support for Acer Predator PHN16-71 SungHwan Jung
2023-11-24 9:41 ` [PATCH v4 1/3] platform/x86: acer-wmi: Add platform profile and mode key support for " SungHwan Jung
2023-11-27 11:43 ` Hans de Goede
2023-11-24 9:41 ` [PATCH v4 2/3] platform/x86: acer-wmi: add fan speed monitoring " SungHwan Jung
2023-11-27 12:15 ` Hans de Goede [this message]
2023-11-24 9:41 ` [PATCH v4 3/3] platform/x86: acer-wmi: Fix recursive dependency for acer-wmi SungHwan Jung
2023-11-27 12:17 ` Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=13bee0fc-2a32-4f6d-ba5d-cac99882686a@redhat.com \
--to=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jdelvare@suse.com \
--cc=jlee@suse.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=onenowy@gmail.com \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox