diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2006-12-28 19:57:49 +0100 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2006-12-30 14:26:41 +0100 |
commit | b2bb550c4a10c44e99fe469cfaee81e2e3109994 (patch) | |
tree | 42db53cec59a5ea56169d497ba5fd15e3ce143bf /drivers/ieee1394 | |
parent | cc016448b0bf0764928275d034e367753bde8162 (diff) | |
download | kernel_samsung_aries-b2bb550c4a10c44e99fe469cfaee81e2e3109994.zip kernel_samsung_aries-b2bb550c4a10c44e99fe469cfaee81e2e3109994.tar.gz kernel_samsung_aries-b2bb550c4a10c44e99fe469cfaee81e2e3109994.tar.bz2 |
ieee1394: sbp2: pass REQUEST_SENSE through to the target
Delete some incorrect code, left over from the initial driver submission
in March 2001.
SBP-2 targets should provide sense data via the SBP-2 status block
(autosense). We have to pass the REQUEST_SENSE command through to
targets which don't implement autosense, if there are any, and to
accomodate application clients which use this command.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/ieee1394')
-rw-r--r-- | drivers/ieee1394/sbp2.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/ieee1394/sbp2.c b/drivers/ieee1394/sbp2.c index e68b80b..d804283 100644 --- a/drivers/ieee1394/sbp2.c +++ b/drivers/ieee1394/sbp2.c @@ -1882,16 +1882,6 @@ static int sbp2scsi_queuecommand(struct scsi_cmnd *SCpnt, if (unlikely(SCpnt->device->lun)) goto done; - /* handle the request sense command here (auto-request sense) */ - if (SCpnt->cmnd[0] == REQUEST_SENSE) { - memcpy(SCpnt->request_buffer, SCpnt->sense_buffer, - SCpnt->request_bufflen); - memset(SCpnt->sense_buffer, 0, sizeof(SCpnt->sense_buffer)); - sbp2scsi_complete_command(lu, SBP2_SCSI_STATUS_GOOD, SCpnt, - done); - return 0; - } - if (unlikely(!hpsb_node_entry_valid(lu->ne))) { SBP2_ERR("Bus reset in progress - rejecting command"); result = DID_BUS_BUSY << 16; |