[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <NONAMEB98KtdhQYZkxO000005d5@nonameb.ptu.promise.com>
Date: Fri, 30 Mar 2007 15:21:38 -0700
From: "Ed Lin" <ed.lin@...mise.com>
To: "linux-scsi" <linux-scsi@...r.kernel.org>
Cc: "linux-kernel" <linux-kernel@...r.kernel.org>,
"james.Bottomley" <james.Bottomley@...elEye.com>,
"jeff" <jeff@...zik.org>,
"promise_linux" <promise_linux@...mise.com>
Subject: [PATCH 3/4] [SCSI]stex: fix reset recovery for console device
After reset completed, the scsi error handler sends out START_STOP
and TEST_UNIT_READY to the device. For 'normal' devices these
commands will be handled by firmware. However, because the RAID
console only interfaces to scsi mid layer, the firmware will not process
these commands 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 <ed.lin@...mise.com>
---
diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c
index 1e8d7ac..9465f35 100644
--- a/drivers/scsi/stex.c
+++ b/drivers/scsi/stex.c
@@ -605,6 +605,14 @@ stex_queuecommand(struct scsi_cmnd *cmd,
stex_invalid_field(cmd, done);
return 0;
}
+ case TEST_UNIT_READY:
+ case START_STOP:
+ if (id == ST_MAX_ARRAY_SUPPORTED) {
+ cmd->result = DID_OK << 16 | COMMAND_COMPLETE << 8;
+ done(cmd);
+ return 0;
+ }
+ break;
case INQUIRY:
if (id != ST_MAX_ARRAY_SUPPORTED)
break;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists