Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64773
b: refs/heads/master
c: bce7d5e
h: refs/heads/master
i:
  64771: c0e6b55
v: v3
  • Loading branch information
Jeff Norden authored and Jeff Garzik committed Sep 11, 2007
1 parent 5b7305f commit df4f49b
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 08ebd43d6b9b63de681b8f255c0fabae8033527c
refs/heads/master: bce7d5e0e1fc0c1f1251b7f21a19cb48207408b6
4 changes: 4 additions & 0 deletions trunk/drivers/ata/pata_it821x.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,10 @@ static int it821x_check_atapi_dma(struct ata_queued_cmd *qc)
struct ata_port *ap = qc->ap;
struct it821x_dev *itdev = ap->private_data;

/* Only use dma for transfers to/from the media. */
if (qc->nbytes < 2048)
return -EOPNOTSUPP;

/* No ATAPI DMA in smart mode */
if (itdev->smart)
return -EOPNOTSUPP;
Expand Down

0 comments on commit df4f49b

Please sign in to comment.