diff options
author | Paul Mackerras <paulus@samba.org> | 2007-09-13 11:24:25 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-09-13 11:24:25 -0400 |
commit | b2315372eac9cd9f622c32a93e323cf6f0f03462 (patch) | |
tree | 9e1faa7cdcddf5d90bec4fb9523742d4cce699a1 /drivers/ata/pata_it821x.c | |
parent | 5326152fa182b0a16e4abf913ce403e3c7ab53b7 (diff) | |
parent | c87ce65868bbf9bbea9c3f112ff8315302daf8f2 (diff) |
Merge branch 'linux-2.6' into for-2.6.24
Diffstat (limited to 'drivers/ata/pata_it821x.c')
-rw-r--r-- | drivers/ata/pata_it821x.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/ata/pata_it821x.c b/drivers/ata/pata_it821x.c index 7225124d96c..5d8b91e70ec 100644 --- a/drivers/ata/pata_it821x.c +++ b/drivers/ata/pata_it821x.c | |||
@@ -80,7 +80,7 @@ | |||
80 | 80 | ||
81 | 81 | ||
82 | #define DRV_NAME "pata_it821x" | 82 | #define DRV_NAME "pata_it821x" |
83 | #define DRV_VERSION "0.3.7" | 83 | #define DRV_VERSION "0.3.8" |
84 | 84 | ||
85 | struct it821x_dev | 85 | struct it821x_dev |
86 | { | 86 | { |
@@ -533,6 +533,10 @@ static int it821x_check_atapi_dma(struct ata_queued_cmd *qc) | |||
533 | struct ata_port *ap = qc->ap; | 533 | struct ata_port *ap = qc->ap; |
534 | struct it821x_dev *itdev = ap->private_data; | 534 | struct it821x_dev *itdev = ap->private_data; |
535 | 535 | ||
536 | /* Only use dma for transfers to/from the media. */ | ||
537 | if (qc->nbytes < 2048) | ||
538 | return -EOPNOTSUPP; | ||
539 | |||
536 | /* No ATAPI DMA in smart mode */ | 540 | /* No ATAPI DMA in smart mode */ |
537 | if (itdev->smart) | 541 | if (itdev->smart) |
538 | return -EOPNOTSUPP; | 542 | return -EOPNOTSUPP; |