diff options
author | Tejun Heo <htejun@gmail.com> | 2007-07-27 14:55:07 +0900 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-08-01 10:00:56 -0400 |
commit | 7abe79c353caf868053c2ddcada7f4c20c8251e6 (patch) | |
tree | 7eee47468d37ecc49aaa79ee4deae90b8a5208f8 /drivers/ata | |
parent | 8c3832ebeb049c5744ece888daae253c683257c3 (diff) | |
download | linux-7abe79c353caf868053c2ddcada7f4c20c8251e6.tar.bz2 |
ata_piix: add Tecra M3 to broken suspend blacklist
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>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/ata_piix.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c index fb3b9594651d..a78832ea81fa 100644 --- a/drivers/ata/ata_piix.c +++ b/drivers/ata/ata_piix.c @@ -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; } |