Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d116a7bc6ab4dcf752078daeaf2276f7d7660595
Commit:     d116a7bc6ab4dcf752078daeaf2276f7d7660595
Parent:     69f4a513911455670d3322fb5252b437c0485707
Author:     Ed Lin <[EMAIL PROTECTED]>
AuthorDate: Wed May 9 20:50:40 2007 -0800
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Wed May 16 12:41:23 2007 -0400

    [SCSI] stex: fix reset recovery for console device
    
    After reset completed, the scsi error handler sends out TEST_UNIT_READY
    to the device. For 'normal' devices the command will be handled by firmware.
    However, because the RAID console only interfaces to scsi mid layer, the
    firmware will not process the command for it. This will make the console to
    be offlined right after reset. Add the handling in driver to fix this 
problem.
    
    Signed-off-by: Ed Lin <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
---
 drivers/scsi/stex.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c
index 81dd3b7..47c2ef9 100644
--- a/drivers/scsi/stex.c
+++ b/drivers/scsi/stex.c
@@ -612,6 +612,13 @@ stex_queuecommand(struct scsi_cmnd *cmd, void (* 
done)(struct scsi_cmnd *))
                        return 0;
                }
                break;
+       case TEST_UNIT_READY:
+               if (id == host->max_id - 1) {
+                       cmd->result = DID_OK << 16 | COMMAND_COMPLETE << 8;
+                       done(cmd);
+                       return 0;
+               }
+               break;
        case INQUIRY:
                if (id != host->max_id - 1)
                        break;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to