forked from luck/tmp_suning_uos_patched
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: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
3264a8d8f9
commit
f2dfc1a12b
@ -1264,8 +1264,8 @@ static unsigned int atapi_eh_request_sense(struct ata_queued_cmd *qc)
|
||||
tf.feature |= ATAPI_PKT_DMA;
|
||||
} else {
|
||||
tf.protocol = ATA_PROT_ATAPI;
|
||||
tf.lbam = (8 * 1024) & 0xff;
|
||||
tf.lbah = (8 * 1024) >> 8;
|
||||
tf.lbam = SCSI_SENSE_BUFFERSIZE;
|
||||
tf.lbah = 0;
|
||||
}
|
||||
|
||||
return ata_exec_internal(dev, &tf, cdb, DMA_FROM_DEVICE,
|
||||
|
Loading…
Reference in New Issue
Block a user