File lm_sensors-r6040-avoid-probing-EDID.patch of Package sensors

Subject: sensors-detect: Avoid probing EDID addresses on graphics cards
Patch-mainline: yes (r6040)
References: bnc#838619 lm-sensors#2386

Avoid probing EDID addresses (0x50-0x57) on graphics card adapters.
We had one report that it caused trouble:
 http://lists.lm-sensors.org/pipermail/lm-sensors/2012-April/035847.html
Even though it's not yet clear what happened, let's play it safe.
This fixes ticket #2386.

---
 prog/detect/sensors-detect |    3 +++
 1 file changed, 3 insertions(+)

--- a/prog/detect/sensors-detect
+++ b/prog/detect/sensors-detect
@@ -3663,6 +3663,9 @@ sub scan_i2c_adapter
 		$input = <STDIN>;
 		chomp($input);
 		@not_to_scan = parse_not_to_scan(0x03, 0x77, $input);
+	} elsif (($class & 0xff00) == 0x0300) {
+		# Skip EDID addresses by default on graphics adapters
+		@not_to_scan = parse_not_to_scan(0x03, 0x77, "0x50-0x57");
 	}
 
 	open(local *FILE, "$dev_i2c$adapter_nr") or
openSUSE Build Service is sponsored by