diff options
Diffstat (limited to 'drivers/ata/pata_it821x.c')
-rw-r--r-- | drivers/ata/pata_it821x.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ata/pata_it821x.c b/drivers/ata/pata_it821x.c index ed637ae33ece..5d8b91e70ecd 100644 --- a/drivers/ata/pata_it821x.c +++ b/drivers/ata/pata_it821x.c | |||
@@ -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; |