aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa.h
diff options
context:
space:
mode:
authorStephen M. Cameron <scameron@beardog.cce.hp.com>2011-01-06 15:48:03 -0500
committerJames Bottomley <James.Bottomley@suse.de>2011-01-24 12:29:32 -0500
commitfe5389c87f13c16cd77d976801c93422d0c05a49 (patch)
treef90be61b1f137562dd4748004304ad5d4b235865 /drivers/scsi/hpsa.h
parent922a9e4da34270d81e216728f929c6e11e169794 (diff)
[SCSI] hpsa: fix board status waiting code
After a reset, we should first wait for the board to become "not ready", and then wait for it to become "ready", instead of immediately waiting for it to become "ready", and do this waiting *after* restoring PCI config space registers. Also, only wait 10 secs for board to become "not ready" after a reset (it should quickly become not ready.) Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/hpsa.h')
-rw-r--r--drivers/scsi/hpsa.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/hpsa.h b/drivers/scsi/hpsa.h
index 19586e189f0f..074d237f4497 100644
--- a/drivers/scsi/hpsa.h
+++ b/drivers/scsi/hpsa.h
@@ -154,12 +154,16 @@ struct ctlr_info {
154 * HPSA_BOARD_READY_ITERATIONS are derived from those. 154 * HPSA_BOARD_READY_ITERATIONS are derived from those.
155 */ 155 */
156#define HPSA_BOARD_READY_WAIT_SECS (120) 156#define HPSA_BOARD_READY_WAIT_SECS (120)
157#define HPSA_BOARD_NOT_READY_WAIT_SECS (10)
157#define HPSA_BOARD_READY_POLL_INTERVAL_MSECS (100) 158#define HPSA_BOARD_READY_POLL_INTERVAL_MSECS (100)
158#define HPSA_BOARD_READY_POLL_INTERVAL \ 159#define HPSA_BOARD_READY_POLL_INTERVAL \
159 ((HPSA_BOARD_READY_POLL_INTERVAL_MSECS * HZ) / 1000) 160 ((HPSA_BOARD_READY_POLL_INTERVAL_MSECS * HZ) / 1000)
160#define HPSA_BOARD_READY_ITERATIONS \ 161#define HPSA_BOARD_READY_ITERATIONS \
161 ((HPSA_BOARD_READY_WAIT_SECS * 1000) / \ 162 ((HPSA_BOARD_READY_WAIT_SECS * 1000) / \
162 HPSA_BOARD_READY_POLL_INTERVAL_MSECS) 163 HPSA_BOARD_READY_POLL_INTERVAL_MSECS)
164#define HPSA_BOARD_NOT_READY_ITERATIONS \
165 ((HPSA_BOARD_NOT_READY_WAIT_SECS * 1000) / \
166 HPSA_BOARD_READY_POLL_INTERVAL_MSECS)
163#define HPSA_POST_RESET_PAUSE_MSECS (3000) 167#define HPSA_POST_RESET_PAUSE_MSECS (3000)
164#define HPSA_POST_RESET_NOOP_RETRIES (12) 168#define HPSA_POST_RESET_NOOP_RETRIES (12)
165 169