Commit 9c690cbf authored by Brett Russ's avatar Brett Russ Committed by Jeff Garzik

[libata scsi] verify cmd bug fixes/support

Also, trim trailing whitespace.
parent 1acc28c3
...@@ -488,13 +488,18 @@ static unsigned int ata_scsi_verify_xlat(struct ata_queued_cmd *qc, u8 *scsicmd) ...@@ -488,13 +488,18 @@ static unsigned int ata_scsi_verify_xlat(struct ata_queued_cmd *qc, u8 *scsicmd)
} }
if (lba48) { if (lba48) {
tf->command = ATA_CMD_VERIFY_EXT;
tf->hob_nsect = (n_sect >> 8) & 0xff; tf->hob_nsect = (n_sect >> 8) & 0xff;
tf->hob_lbah = (sect >> 40) & 0xff; tf->hob_lbah = (sect >> 40) & 0xff;
tf->hob_lbam = (sect >> 32) & 0xff; tf->hob_lbam = (sect >> 32) & 0xff;
tf->hob_lbal = (sect >> 24) & 0xff; tf->hob_lbal = (sect >> 24) & 0xff;
} else } else {
tf->command = ATA_CMD_VERIFY;
tf->device |= (sect >> 24) & 0xf; tf->device |= (sect >> 24) & 0xf;
}
tf->nsect = n_sect & 0xff; tf->nsect = n_sect & 0xff;
......
...@@ -123,6 +123,8 @@ enum { ...@@ -123,6 +123,8 @@ enum {
ATA_CMD_PIO_WRITE_EXT = 0x34, ATA_CMD_PIO_WRITE_EXT = 0x34,
ATA_CMD_SET_FEATURES = 0xEF, ATA_CMD_SET_FEATURES = 0xEF,
ATA_CMD_PACKET = 0xA0, ATA_CMD_PACKET = 0xA0,
ATA_CMD_VERIFY = 0x40,
ATA_CMD_VERIFY_EXT = 0x42,
/* SETFEATURES stuff */ /* SETFEATURES stuff */
SETFEATURES_XFER = 0x03, SETFEATURES_XFER = 0x03,
......
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