Commit 24d87639 authored by Albert Cranford's avatar Albert Cranford Committed by Linus Torvalds

[PATCH] 2.5.33 dmi_scan blacklist ibm thinkpad for i2c/sensors

This adds IBM thinkpads to a list of mainboards that should not be
scanned by i2c sensors during detection phase.
parent 1314cad1
......@@ -12,6 +12,7 @@
unsigned long dmi_broken;
int is_sony_vaio_laptop;
int is_unsafe_smbus;
struct dmi_header
{
......@@ -459,6 +460,19 @@ static int __init apm_kills_local_apic_timer(struct dmi_blacklist *d)
return 0;
}
/*
* Don't access SMBus on IBM systems which get corrupted eeproms
*/
static __init int disable_smbus(struct dmi_blacklist *d)
{
if (is_unsafe_smbus == 0) {
is_unsafe_smbus = 1;
printk(KERN_INFO "%s machine detected. Disabling SMBus accesses.\n", d->ident);
}
return 0;
}
/*
* Simple "print if true" callback
*/
......@@ -732,6 +746,15 @@ static __initdata struct dmi_blacklist dmi_blacklist[]={
NO_MATCH, NO_MATCH, NO_MATCH
} },
/*
* SMBus / sensors settings
*/
{ disable_smbus, "IBM", {
MATCH(DMI_SYS_VENDOR, "IBM"),
NO_MATCH, NO_MATCH, NO_MATCH
} },
{ NULL, }
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment