Fix-up lm_sensors-3.6.0-sensors-detect-fix-driver-for-w83677hgi.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/sensors?expand=0&rev=113
This commit is contained in:
Jean Delvare 2020-05-12 09:14:05 +00:00 committed by Git OBS Bridge
parent 0b18882334
commit 36b85d700a
2 changed files with 18 additions and 6 deletions

View File

@ -1,7 +1,5 @@
From: Jean Delvare <jdelvare@suse.de>
Subject: sensors-detect: Fix the driver for Nuvoton W83677HG-I
Patch-mainline: Submitted
References: bsc#1169316
Originally, support for the Nuvoton W83677HG-I and derivatives was
first added to the w83627ehf driver, so that's the driver recommended
@ -17,11 +15,14 @@ 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(-)
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-07 14:44:55.909135775 +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,
}, {
@ -31,3 +32,14 @@ Signed-off-by: Jean Delvare <jdelvare@suse.de>
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}->();
}

View File

@ -1,5 +1,5 @@
-------------------------------------------------------------------
Thu May 7 13:09:39 UTC 2020 - Jean Delvare <jdelvare@suse.com>
Tue May 12 09:12:56 UTC 2020 - Jean Delvare <jdelvare@suse.com>
- lm_sensors-3.6.0-sensors-detect-fix-driver-for-w83677hgi.patch:
Point owners of Nuvoton W83677HG-I and compatible chipsets to