Skip to content

Commit

Permalink
libata: update atapi_eh_request_sense() such that lbam/lbah contains …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Dec 18, 2007
1 parent 3264a8d commit f2dfc1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/ata/libata-eh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f2dfc1a

Please sign in to comment.