From: Ahmad Khalifa <ahmad@khalifa.ws>
To: Denis Pauk <pauk.denis@gmail.com>, Guenter Roeck <linux@roeck-us.net>
Cc: Jean Delvare <jdelvare@suse.com>,
linux-hwmon@vger.kernel.org, Zev Weiss <zev@bewilderbeest.net>
Subject: Re: [RFC] hwmon: (nct6775) Add NCT6799 support through ACPI layer
Date: Thu, 20 Oct 2022 18:08:00 +0100 [thread overview]
Message-ID: <bdc8ff0e-9223-36ed-366e-d5675e7c9062@khalifa.ws> (raw)
In-Reply-To: <20221020000421.4511b40d@gmail.com>
On 19/10/2022 22:04, Denis Pauk wrote:
> Hi Ahmad,
>
> Thank you for your patch.
>
> I will add mention of you patch in
> https://bugzilla.kernel.org/show_bug.cgi?id=204807 also.
That's an interesting bug. It has loads of ACPI tables in there, which
could be very useful.
The acpi patch is still a proof of concept and will show wrong values, I
know the voltages and temperatures are mixed up or could even be pulling
rubbish data that looks like a temperature.
I just wanted comments on where to go, thanks for the below.
There is definitely lots to fix up first.
> I have added my comments below.
>> +static void superio_acpi_select(struct nct6775_sio_data *sio_data,
>> int ld) +{
>> + sio_data->ld = ld;
>> +}
>> +
> Could be reused superio_wmi_select here with some more general name?
> e.g rename superio_wmi_select -> superio_asus_select, or some other
> name.
>> +static int superio_acpi_enter(struct nct6775_sio_data *sio_data)
>> +{
>> + return 0;
>> +}
>> +
>> +static void superio_acpi_exit(struct nct6775_sio_data *sio_data)
>> +{
>> +}
>> +
> Could be reused superio_wmi_exit here with some more general name?
Yes, make them common for both.
Frankly, I replicated them mechanically so the patch is quicker to read
without lots of +/- lines
>> + case nct6799:
> Looks as same as for the previous one (nct6798). Have i missed some
> reg difference?
They're a replica, probably should've reused the above case.
--
Regards,
Ahmad
next prev parent reply other threads:[~2022-10-20 17:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-18 17:34 [RFC] hwmon: (nct6775) Add NCT6799 support through ACPI layer Ahmad Khalifa
2022-10-19 17:06 ` Guenter Roeck
2022-10-19 21:04 ` Denis Pauk
2022-10-20 17:08 ` Ahmad Khalifa [this message]
2022-10-20 16:54 ` Ahmad Khalifa
2022-10-20 20:04 ` Denis Pauk
2022-10-20 21:53 ` Ahmad Khalifa
2022-10-21 5:53 ` Denis Pauk
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=bdc8ff0e-9223-36ed-366e-d5675e7c9062@khalifa.ws \
--to=ahmad@khalifa.ws \
--cc=jdelvare@suse.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=pauk.denis@gmail.com \
--cc=zev@bewilderbeest.net \
/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