Skip to content

Commit

Permalink
ata_piix: add Tecra M3 to broken suspend blacklist
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Aug 1, 2007
1 parent 8c3832e commit 7abe79c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/ata/ata_piix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7abe79c

Please sign in to comment.