* [PATCH] sensors-detect: Fix the driver for Nuvoton W83677HG-I
@ 2020-05-07 13:00 Jean Delvare
2020-05-07 19:57 ` Guenter Roeck
2020-05-12 9:03 ` Jean Delvare
0 siblings, 2 replies; 3+ messages in thread
From: Jean Delvare @ 2020-05-07 13:00 UTC (permalink / raw)
To: lm-sensors
Originally, support for the Nuvoton W83677HG-I and derivatives was
first added to the w83627ehf driver, so that's the driver recommended
by sensors-detect. Later, support for the same device was added to
the nct6775 driver. In kernel v5.6, support was removed from the
w83627ehf driver to get rid of the duplicate code.
So sensors-detect should now point users of this device to the
nct6775 driver. We can't do that for very old kernels though, as this
driver did not exist back then. I chose v3.10 for the cut-over, as
this is when support for the Nuvoton W83677HG-I was finalized in the
nct6775 driver, at least according to git log.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
---
prog/detect/sensors-detect | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- lm-sensors.orig/prog/detect/sensors-detect 2020-05-07 14:29:34.731733274 +0200
+++ lm-sensors/prog/detect/sensors-detect 2020-05-07 14:44:55.909135775 +0200
@@ -2273,7 +2273,7 @@ use constant FEAT_SMBUS => (1 << 7);
features => FEAT_IN | FEAT_FAN | FEAT_TEMP,
}, {
name => "Nuvoton W83677HG-I (NCT5572D/NCT6771F/NCT6772F/NCT6775F) Super IO Sensors",
- driver => "w83627ehf",
+ driver => sub { kernel_version_at_least(3, 10, 0) ? "nct6775" : "w83627ehf" },
devid => 0xB470,
devid_mask => 0xFFF0,
logdev => 0x0b,
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] sensors-detect: Fix the driver for Nuvoton W83677HG-I
2020-05-07 13:00 [PATCH] sensors-detect: Fix the driver for Nuvoton W83677HG-I Jean Delvare
@ 2020-05-07 19:57 ` Guenter Roeck
2020-05-12 9:03 ` Jean Delvare
1 sibling, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2020-05-07 19:57 UTC (permalink / raw)
To: lm-sensors
On 5/7/20 6:00 AM, Jean Delvare wrote:
> Originally, support for the Nuvoton W83677HG-I and derivatives was
> first added to the w83627ehf driver, so that's the driver recommended
> by sensors-detect. Later, support for the same device was added to
> the nct6775 driver. In kernel v5.6, support was removed from the
> w83627ehf driver to get rid of the duplicate code.
>
> So sensors-detect should now point users of this device to the
> nct6775 driver. We can't do that for very old kernels though, as this
> driver did not exist back then. I chose v3.10 for the cut-over, as
> this is when support for the Nuvoton W83677HG-I was finalized in the
> nct6775 driver, at least according to git log.
>
> Signed-off-by: Jean Delvare <jdelvare@suse.de>
Acked-by: Guenter Roeck <linux@roeck-us.net>
> ---
> prog/detect/sensors-detect | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- lm-sensors.orig/prog/detect/sensors-detect 2020-05-07 14:29:34.731733274 +0200
> +++ lm-sensors/prog/detect/sensors-detect 2020-05-07 14:44:55.909135775 +0200
> @@ -2273,7 +2273,7 @@ use constant FEAT_SMBUS => (1 << 7);
> features => FEAT_IN | FEAT_FAN | FEAT_TEMP,
> }, {
> name => "Nuvoton W83677HG-I (NCT5572D/NCT6771F/NCT6772F/NCT6775F) Super IO Sensors",
> - driver => "w83627ehf",
> + driver => sub { kernel_version_at_least(3, 10, 0) ? "nct6775" : "w83627ehf" },
> devid => 0xB470,
> devid_mask => 0xFFF0,
> logdev => 0x0b,
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] sensors-detect: Fix the driver for Nuvoton W83677HG-I
2020-05-07 13:00 [PATCH] sensors-detect: Fix the driver for Nuvoton W83677HG-I Jean Delvare
2020-05-07 19:57 ` Guenter Roeck
@ 2020-05-12 9:03 ` Jean Delvare
1 sibling, 0 replies; 3+ messages in thread
From: Jean Delvare @ 2020-05-12 9:03 UTC (permalink / raw)
To: lm-sensors
On Thu, 7 May 2020 15:00:45 +0200, Jean Delvare wrote:
> Originally, support for the Nuvoton W83677HG-I and derivatives was
> first added to the w83627ehf driver, so that's the driver recommended
> by sensors-detect. Later, support for the same device was added to
> the nct6775 driver. In kernel v5.6, support was removed from the
> w83627ehf driver to get rid of the duplicate code.
>
> So sensors-detect should now point users of this device to the
> nct6775 driver. We can't do that for very old kernels though, as this
> driver did not exist back then. I chose v3.10 for the cut-over, as
> this is when support for the Nuvoton W83677HG-I was finalized in the
> nct6775 driver, at least according to git log.
>
> Signed-off-by: Jean Delvare <jdelvare@suse.de>
> ---
> prog/detect/sensors-detect | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- lm-sensors.orig/prog/detect/sensors-detect 2020-05-07 14:29:34.731733274 +0200
> +++ lm-sensors/prog/detect/sensors-detect 2020-05-07 14:44:55.909135775 +0200
> @@ -2273,7 +2273,7 @@ use constant FEAT_SMBUS => (1 << 7);
> features => FEAT_IN | FEAT_FAN | FEAT_TEMP,
> }, {
> name => "Nuvoton W83677HG-I (NCT5572D/NCT6771F/NCT6772F/NCT6775F) Super IO Sensors",
> - driver => "w83627ehf",
> + driver => sub { kernel_version_at_least(3, 10, 0) ? "nct6775" : "w83627ehf" },
> devid => 0xB470,
> devid_mask => 0xFFF0,
> logdev => 0x0b,
>
>
I got negative feedback from my testing user, there's something wrong
with this patch, please disregard for now, sorry for the noise.
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-12 9:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-07 13:00 [PATCH] sensors-detect: Fix the driver for Nuvoton W83677HG-I Jean Delvare
2020-05-07 19:57 ` Guenter Roeck
2020-05-12 9:03 ` Jean Delvare
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.