[lm-sensors] [PATCH 0/2] hwmon: (abituguru3) Partial DMI matching, add IN9 32X MAX DMI product string

Jean Delvare khali at linux-fr.org
Thu Jan 15 16:22:45 CET 2009


Hi Alistair,

On Tue, 13 Jan 2009 16:56:36 +0000, Alistair John Strachan wrote:
> These patches have been compile and runtime tested.
> 
> The first patch implements the partial DMI matching we discussed, hopefully
> this method will prevent any further false negatives (thanks to Jean for
> his input on the method chosen).
> 
> The second patch adds a partial DMI board string for the IN9 32X MAX,
> enabling DMI board string matching. It depends on the first patch.
> 
> Both of these could go upstream; the first can definitely be considered a
> bugfix, the second is more dubious, but since I've rebased it on the first
> it could be applied later if required.

Yes, I will push these patches upstream later today.

> (One remaining question would be whether patch 1 should be CCed to -stable,
>  since there has been a regression introduced into 2.6.27 and present in
>  2.6.28 for some BIOS revisions of the IP35 Pro.)

Is there really a regression? If the DMI matching doesn't work, we fall
back to the old detection method, so I can't see how there would be a
regression. Care to explain?

(Which doesn't mean we can't push the patches to stable, as stable
isn't limited to regressions. Just trying to understand.)

Speaking of DMI matching... If DMI is disabled, we do:

static inline int abituguru3_dmi_detect(void)
{
	return -ENODEV;
}

And this error value causes abituguru3_init() to bail out. Unless I'm
missing something, the abituguru3 driver is simply useless without DMI
support at the moment. We should either make that official and make the
driver depend on DMI at Kconfig level, or change
abituguru3_dmi_detect() to return 1, so that we fallback to the old
detection method. Opinions?

-- 
Jean Delvare




More information about the lm-sensors mailing list