projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3264a8d
)
libata: update atapi_eh_request_sense() such that lbam/lbah contains buffer size
author
Tejun Heo
<htejun@gmail.com>
Wed, 12 Dec 2007 03:12:46 +0000
(12:12 +0900)
committer
Jeff Garzik
<jeff@garzik.org>
Tue, 18 Dec 2007 01:33:15 +0000
(20:33 -0500)
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>
drivers/ata/libata-eh.c
patch
|
blob
|
history
diff --git
a/drivers/ata/libata-eh.c
b/drivers/ata/libata-eh.c
index e6605f0386477f7f41fc4821debb11b0191fb9b6..f0124a8d313427b655f33912d66bdc1612131139 100644
(file)
--- a/
drivers/ata/libata-eh.c
+++ b/
drivers/ata/libata-eh.c
@@
-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,