Commit fb4844b8 authored by Bart Van Assche's avatar Bart Van Assche Committed by Jens Axboe

skb: Use symbolic names for SCSI opcodes

This patch does not change any functionality.
Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 01433d0d
...@@ -473,9 +473,9 @@ skd_prep_rw_cdb(struct skd_scsi_request *scsi_req, ...@@ -473,9 +473,9 @@ skd_prep_rw_cdb(struct skd_scsi_request *scsi_req,
unsigned count) unsigned count)
{ {
if (data_dir == READ) if (data_dir == READ)
scsi_req->cdb[0] = 0x28; scsi_req->cdb[0] = READ_10;
else else
scsi_req->cdb[0] = 0x2a; scsi_req->cdb[0] = WRITE_10;
scsi_req->cdb[1] = 0; scsi_req->cdb[1] = 0;
scsi_req->cdb[2] = (lba & 0xff000000) >> 24; scsi_req->cdb[2] = (lba & 0xff000000) >> 24;
...@@ -494,7 +494,7 @@ skd_prep_zerosize_flush_cdb(struct skd_scsi_request *scsi_req, ...@@ -494,7 +494,7 @@ skd_prep_zerosize_flush_cdb(struct skd_scsi_request *scsi_req,
{ {
skreq->flush_cmd = 1; skreq->flush_cmd = 1;
scsi_req->cdb[0] = 0x35; scsi_req->cdb[0] = SYNCHRONIZE_CACHE;
scsi_req->cdb[1] = 0; scsi_req->cdb[1] = 0;
scsi_req->cdb[2] = 0; scsi_req->cdb[2] = 0;
scsi_req->cdb[3] = 0; scsi_req->cdb[3] = 0;
...@@ -1880,7 +1880,8 @@ static void skd_complete_internal(struct skd_device *skdev, ...@@ -1880,7 +1880,8 @@ static void skd_complete_internal(struct skd_device *skdev,
} }
dev_dbg(&skdev->pdev->dev, dev_dbg(&skdev->pdev->dev,
"**** TUR failed, retry skerr\n"); "**** TUR failed, retry skerr\n");
skd_send_internal_skspcl(skdev, skspcl, 0x00); skd_send_internal_skspcl(skdev, skspcl,
TEST_UNIT_READY);
} }
break; break;
...@@ -1896,7 +1897,8 @@ static void skd_complete_internal(struct skd_device *skdev, ...@@ -1896,7 +1897,8 @@ static void skd_complete_internal(struct skd_device *skdev,
} }
dev_dbg(&skdev->pdev->dev, dev_dbg(&skdev->pdev->dev,
"**** write buffer failed, retry skerr\n"); "**** write buffer failed, retry skerr\n");
skd_send_internal_skspcl(skdev, skspcl, 0x00); skd_send_internal_skspcl(skdev, skspcl,
TEST_UNIT_READY);
} }
break; break;
...@@ -1929,7 +1931,8 @@ static void skd_complete_internal(struct skd_device *skdev, ...@@ -1929,7 +1931,8 @@ static void skd_complete_internal(struct skd_device *skdev,
} }
dev_dbg(&skdev->pdev->dev, dev_dbg(&skdev->pdev->dev,
"**** read buffer failed, retry skerr\n"); "**** read buffer failed, retry skerr\n");
skd_send_internal_skspcl(skdev, skspcl, 0x00); skd_send_internal_skspcl(skdev, skspcl,
TEST_UNIT_READY);
} }
break; break;
......
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