diff options
author | Tejun Heo <htejun@gmail.com> | 2007-07-27 01:55:07 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-08-01 10:00:56 -0400 |
commit | 7abe79c353caf868053c2ddcada7f4c20c8251e6 (patch) | |
tree | 7eee47468d37ecc49aaa79ee4deae90b8a5208f8 /drivers/ata | |
parent | 8c3832ebeb049c5744ece888daae253c683257c3 (diff) |
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) | |||
916 | }, | 916 | }, |
917 | { } | 917 | { } |
918 | }; | 918 | }; |
919 | static const char *oemstrs[] = { | ||
920 | "Tecra M3,", | ||
921 | }; | ||
922 | int i; | ||
919 | 923 | ||
920 | if (dmi_check_system(sysids)) | 924 | if (dmi_check_system(sysids)) |
921 | return 1; | 925 | return 1; |
922 | 926 | ||
927 | for (i = 0; i < ARRAY_SIZE(oemstrs); i++) | ||
928 | if (dmi_find_device(DMI_DEV_TYPE_OEM_STRING, oemstrs[i], NULL)) | ||
929 | return 1; | ||
930 | |||
923 | return 0; | 931 | return 0; |
924 | } | 932 | } |
925 | 933 | ||