summaryrefslogtreecommitdiffstats
path: root/drivers/block/cciss_cmd.h
diff options
context:
space:
mode:
authorStephen M. Cameron <scameron@beardog.cce.hp.com>2011-05-03 14:53:00 -0500
committerJens Axboe <jaxboe@fusionio.com>2011-05-06 08:23:46 -0600
commit62710ae1ceb839de1eebb5b4492ec8a7fbcf8d02 (patch)
treee11fe26e7d281618ba47a95a91ea26ecb7643973 /drivers/block/cciss_cmd.h
parent9bd3c20487b7c13d397dc11dd51e30256bf4c9b3 (diff)
downloadop-kernel-dev-62710ae1ceb839de1eebb5b4492ec8a7fbcf8d02.zip
op-kernel-dev-62710ae1ceb839de1eebb5b4492ec8a7fbcf8d02.tar.gz
cciss: do a better job of detecting controller reset failure
Detect failure of controller reset by noticing if the 32 bytes of "driver version" we store on the hardware in the config table fail to get zeroed out. Previously we noticed if the controller did not transition to "simple mode", but this did not detect reset failure if the controller was already in simple mode prior to the reset attempt (e.g. due to module parameter hpsa_simple_mode=1). Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers/block/cciss_cmd.h')
-rw-r--r--drivers/block/cciss_cmd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/cciss_cmd.h b/drivers/block/cciss_cmd.h
index cd441be..a2e68d2 100644
--- a/drivers/block/cciss_cmd.h
+++ b/drivers/block/cciss_cmd.h
@@ -235,6 +235,7 @@ typedef struct _CfgTable_struct {
u8 reserved[0x78 - 0x58];
u32 misc_fw_support; /* offset 0x78 */
#define MISC_FW_DOORBELL_RESET (0x02)
+ u8 driver_version[32];
} CfgTable_struct;
struct TransTable_struct {
OpenPOWER on IntegriCloud