aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/megaraid/megaraid_sas.h
diff options
context:
space:
mode:
authorbo yang <bo.yang@lsi.com>2008-03-17 03:36:43 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-04-07 13:19:00 -0400
commitd532dbe2cb71586ab520dbef732d1af54a689313 (patch)
treea344ad2cd18de7d8f16e65c357ae3c0c30493277 /drivers/scsi/megaraid/megaraid_sas.h
parentb70a41e077b3405d4b41d34db31b39c05bf142b5 (diff)
[SCSI] megaraid_sas: Fix the frame count calculation
When Driver sent wrong frame count to firmware. As this particular command is sent to drive, FW is seeing continuous chip resets and so the command will timeout. Signed-off-by Bo Yang<bo.yang@lsi.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/megaraid/megaraid_sas.h')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas.h b/drivers/scsi/megaraid/megaraid_sas.h
index 6466bdf548c2..fbbfe2ea049f 100644
--- a/drivers/scsi/megaraid/megaraid_sas.h
+++ b/drivers/scsi/megaraid/megaraid_sas.h
@@ -542,6 +542,10 @@ struct megasas_ctrl_info {
542 542
543#define MEGASAS_FW_BUSY 1 543#define MEGASAS_FW_BUSY 1
544 544
545/* Frame Type */
546#define IO_FRAME 0
547#define PTHRU_FRAME 1
548
545/* 549/*
546 * When SCSI mid-layer calls driver's reset routine, driver waits for 550 * When SCSI mid-layer calls driver's reset routine, driver waits for
547 * MEGASAS_RESET_WAIT_TIME seconds for all outstanding IO to complete. Note 551 * MEGASAS_RESET_WAIT_TIME seconds for all outstanding IO to complete. Note