Commit f2dfc1a1 authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik

libata: update atapi_eh_request_sense() such that lbam/lbah contains buffer size

While updating lbam/h for ATAPI commands, atapi_eh_request_sense() was
left out.  Update it.
Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 3264a8d8
...@@ -1264,8 +1264,8 @@ static unsigned int atapi_eh_request_sense(struct ata_queued_cmd *qc) ...@@ -1264,8 +1264,8 @@ static unsigned int atapi_eh_request_sense(struct ata_queued_cmd *qc)
tf.feature |= ATAPI_PKT_DMA; tf.feature |= ATAPI_PKT_DMA;
} else { } else {
tf.protocol = ATA_PROT_ATAPI; tf.protocol = ATA_PROT_ATAPI;
tf.lbam = (8 * 1024) & 0xff; tf.lbam = SCSI_SENSE_BUFFERSIZE;
tf.lbah = (8 * 1024) >> 8; tf.lbah = 0;
} }
return ata_exec_internal(dev, &tf, cdb, DMA_FROM_DEVICE, return ata_exec_internal(dev, &tf, cdb, DMA_FROM_DEVICE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment