[lm-sensors] [PATCH] hwmon: (asus_atk0110) Don't load if ACPI resources aren't enforced
Luca Tettamanti
kronos.it at gmail.com
Tue Mar 9 21:20:25 CET 2010
On Tue, Mar 9, 2010 at 1:56 PM, Jean Delvare <khali at linux-fr.org> wrote:
> When the user passes the kernel parameter acpi_enforce_resources=lax,
> the ACPI resources are no longer protected, so a native driver can
> make use of them. In that case, we do not want the asus_atk0110 to be
> loaded. Unfortunately, this driver loads automatically due to its
> MODULE_DEVICE_TABLE, so the user ends up with two drivers loaded for
> the same device - this is bad.
>
> So I suggest that we prevent the asus_atk0110 driver from loading if
> acpi_enforce_resources=lax.
>
> Signed-off-by: Jean Delvare <khali at linux-fr.org>
> Cc: Luca Tettamanti <kronos.it at gmail.com>
> Cc: Len Brown <lenb at kernel.org>
Acked-by: Luca Tettamanti <kronos.it at gmail.com>
> ---
> Luca, what do you think? I had the idea to write this patch after
> seeing this bug report:
> https://bugzilla.novell.com/show_bug.cgi?id=580988
> I'm not sure if the driver conflict is the root cause of the problem,
> but it certainly did not help.
The patch look good.
> Another approach would be to hide the ATK0110 ACPI device itself, but I
> don't know if it is possible?
AFAIK it's not possible.
Luca
More information about the lm-sensors
mailing list