Hello community,

here is the log from the commit of package sensors for openSUSE:Factory checked 
in at 2020-05-14 23:24:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sensors (Old)
 and      /work/SRC/openSUSE:Factory/.sensors.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sensors"

Thu May 14 23:24:53 2020 rev:104 rq:803015 version:3.6.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/sensors/sensors.changes  2019-12-07 
15:15:11.447797519 +0100
+++ /work/SRC/openSUSE:Factory/.sensors.new.2738/sensors.changes        
2020-05-14 23:24:59.917007709 +0200
@@ -1,0 +2,8 @@
+Tue May 12 09:12:56 UTC 2020 - Jean Delvare <[email protected]>
+
+- lm_sensors-3.6.0-sensors-detect-fix-driver-for-w83677hgi.patch:
+  Point owners of Nuvoton W83677HG-I and compatible chipsets to
+  the nct6775 driver, as support was just removed from the
+  w83627ehf driver (bsc#1169316).
+
+-------------------------------------------------------------------

New:
----
  lm_sensors-3.6.0-sensors-detect-fix-driver-for-w83677hgi.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ sensors.spec ++++++
--- /var/tmp/diff_new_pack.NCEybL/_old  2020-05-14 23:25:01.177010458 +0200
+++ /var/tmp/diff_new_pack.NCEybL/_new  2020-05-14 23:25:01.181010467 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package sensors
 #
-# Copyright (c) 2019 SUSE LLC
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -43,6 +43,8 @@
 #PATCH-FEATURE-UPSTREAM add ftsteutates support
 Patch7:         lm_sensors-3.4.0-sensors-detect-add-ftsteutates-support.patch
 Patch8:         lm_sensors-3.5.0-libsensors-fix-soname.patch
+#PATCH-FEATURE-UPSTREAM add ftsteutates support
+Patch9:         lm_sensors-3.6.0-sensors-detect-fix-driver-for-w83677hgi.patch
 BuildRequires:  bison
 BuildRequires:  flex
 BuildRequires:  rrdtool-devel
@@ -111,6 +113,7 @@
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
 
 %build
 RPM_OPT_FLAGS="%{optflags}"

++++++ lm_sensors-3.6.0-sensors-detect-fix-driver-for-w83677hgi.patch ++++++
From: Jean Delvare <[email protected]>
Subject: sensors-detect: Fix the driver for Nuvoton W83677HG-I

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 <[email protected]>
---
Changes since v1:
 * Enable run-time driver decision for Super-I/O devices

 prog/detect/sensors-detect |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

--- lm-sensors.orig/prog/detect/sensors-detect  2020-05-07 14:29:34.731733274 
+0200
+++ lm-sensors/prog/detect/sensors-detect       2020-05-12 11:08:07.989885399 
+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,
@@ -4574,7 +4574,9 @@ sub scan_cpu
 sub chip_special_cases
 {
        # Some chip to driver mappings depend on the environment
-       foreach my $chip (@chip_ids) {
+       foreach my $chip (@chip_ids, @superio_ids_natsemi, @superio_ids_smsc,
+                         @superio_ids_smsc_ns, @superio_ids_winbond,
+                         @superio_ids_ite) {
                if (ref($chip->{driver}) eq 'CODE') {
                        $chip->{driver} = $chip->{driver}->();
                }

Reply via email to