Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263113
b: refs/heads/master
c: 6d0e194
h: refs/heads/master
i:
  263111: d54783a
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Aug 19, 2011
1 parent e7bf900 commit 343584c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ebd1699ec5f1a6f1f2df6b48fa54bc6ff790143c
refs/heads/master: 6d0e194d2eefcaab6dbdca1f639748660144acb5
18 changes: 18 additions & 0 deletions trunk/drivers/ata/pata_via.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,17 @@ static const struct via_isa_bridge {
{ NULL }
};

static const struct dmi_system_id no_atapi_dma_dmi_table[] = {
{
.ident = "AVERATEC 3200",
.matches = {
DMI_MATCH(DMI_BOARD_VENDOR, "AVERATEC"),
DMI_MATCH(DMI_BOARD_NAME, "3200"),
},
},
{ }
};

struct via_port {
u8 cached_device;
};
Expand Down Expand Up @@ -355,6 +366,13 @@ static unsigned long via_mode_filter(struct ata_device *dev, unsigned long mask)
mask &= ~ ATA_MASK_UDMA;
}
}

if (dev->class == ATA_DEV_ATAPI &&
dmi_check_system(no_atapi_dma_dmi_table)) {
ata_dev_warn(dev, "controller locks up on ATAPI DMA, forcing PIO\n");
mask &= ATA_MASK_PIO;
}

return mask;
}

Expand Down

0 comments on commit 343584c

Please sign in to comment.