aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Lee <albertcc@tw.ibm.com>2006-12-06 22:37:58 -0500
committerJeff Garzik <jeff@garzik.org>2006-12-07 07:22:28 -0500
commite3472cbe5c10a91c737405cd706142787736392c (patch)
tree242a1912ee0a548969067673fdb329926b5a7a2a
parentd324d4627d7442d9a74b0b93fc40f71ce194632a (diff)
[PATCH] libata: let ATA_FLAG_PIO_POLLING use polling pio for ATA_PROT_NODATA
Even if ATA_FLAG_PIO_POLLING is set, libata uses irq pio for the ATA_PROT_NODATA protocol. This patch let ATA_FLAG_PIO_POLLING use polling pio for the ATA_PROT_NODATA protocol. Signed-off-by: Albert Lee <albertcc@tw.ibm.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r--drivers/ata/libata-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 8816e30fb7a4..d2e686371870 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -4960,6 +4960,7 @@ unsigned int ata_qc_issue_prot(struct ata_queued_cmd *qc)
4960 if (ap->flags & ATA_FLAG_PIO_POLLING) { 4960 if (ap->flags & ATA_FLAG_PIO_POLLING) {
4961 switch (qc->tf.protocol) { 4961 switch (qc->tf.protocol) {
4962 case ATA_PROT_PIO: 4962 case ATA_PROT_PIO:
4963 case ATA_PROT_NODATA:
4963 case ATA_PROT_ATAPI: 4964 case ATA_PROT_ATAPI:
4964 case ATA_PROT_ATAPI_NODATA: 4965 case ATA_PROT_ATAPI_NODATA:
4965 qc->tf.flags |= ATA_TFLAG_POLLING; 4966 qc->tf.flags |= ATA_TFLAG_POLLING;