• Alistair John Strachan's avatar
    hwmon: (abituguru3) Match partial DMI board name strings · 058943dd
    Alistair John Strachan authored
    The switch-over to using DMI board strings to identify abituguru3 compatible
    mainboards works most of the time, but sometimes the vendor has substantially
    modified the board string between BIOS revisions.
    
    We have found that the vendor chipset identification string (provided in
    brackets) changes frequently and is of no use to us. The rest of the board
    string sometimes changes in subtle ways, e.g. whitespace or variations in
    capitalization.
    
    The new comparison code checks only a part of the supplied DMI board string,
    trimming the bracketed content, whitespace, and ignoring case as necessary.
    
    This fixes a bug where an IP35 Pro running an early BIOS would not be
    detected without the force=1 module parameter, and also speculatively
    fixes other similiar issues.
    Signed-off-by: default avatarAlistair John Strachan <alistair@devzero.co.uk>
    Reported-by: default avatarNick Pasich <NewsLetters@nickandbarb.net>
    Cc: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
    058943dd
abituguru3.c 41 KB