ata_piix: add Tecra M3 to broken suspend blacklist
authorTejun Heo <htejun@gmail.com>
Fri, 27 Jul 2007 05:55:07 +0000 (14:55 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 1 Aug 2007 14:00:56 +0000 (10:00 -0400)
Add Tecra M3 to the broken suspend blacklist.  Tecra M3 doesn't have
proper DMI_PRODUCT_NAME but has an OEM_STRING instead.  Match it.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/ata_piix.c

index fb3b9594651d4a72edf99b4fde37cf7d1cdeb72c..a78832ea81fa0f5cc9460cca362f498307820cb1 100644 (file)
@@ -916,10 +916,18 @@ static int piix_broken_suspend(void)
                },
                { }
        };
+       static const char *oemstrs[] = {
+               "Tecra M3,",
+       };
+       int i;
 
        if (dmi_check_system(sysids))
                return 1;
 
+       for (i = 0; i < ARRAY_SIZE(oemstrs); i++)
+               if (dmi_find_device(DMI_DEV_TYPE_OEM_STRING, oemstrs[i], NULL))
+                       return 1;
+
        return 0;
 }