aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt2sas/mpt2sas_scsih.c
diff options
context:
space:
mode:
authorReddy, Sreekanth <Sreekanth.Reddy@lsi.com>2013-02-26 06:29:59 -0500
committerJames Bottomley <JBottomley@Parallels.com>2013-06-24 15:35:34 -0400
commitb0df96a0068daee4f9c2189c29b9053eb6e46b17 (patch)
tree6e9f6aa9ca2160fa0198b80e06020bfbe9ee85c6 /drivers/scsi/mpt2sas/mpt2sas_scsih.c
parent49c1241384b599421a5e8c9f73f72e2052dd416d (diff)
[SCSI] mpt2sas: Fix for issue Missing delay not getting set during system bootup
Missing delay is not getting set properly. The reason is that it is not defined in the same file from where it is being invoked. The fix is to move the missing delay module parameter from mpt2sas_base.c to mpt2sas_scsh.c. Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@lsi.com> Cc: stable@vger.kernel.org Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_scsih.c')
-rw-r--r--drivers/scsi/mpt2sas/mpt2sas_scsih.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
index c6bdc9267229..116e20195e15 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c
+++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
@@ -101,6 +101,10 @@ static ushort max_sectors = 0xFFFF;
101module_param(max_sectors, ushort, 0); 101module_param(max_sectors, ushort, 0);
102MODULE_PARM_DESC(max_sectors, "max sectors, range 64 to 32767 default=32767"); 102MODULE_PARM_DESC(max_sectors, "max sectors, range 64 to 32767 default=32767");
103 103
104static int missing_delay[2] = {-1, -1};
105module_param_array(missing_delay, int, NULL, 0);
106MODULE_PARM_DESC(missing_delay, " device missing delay , io missing delay");
107
104/* scsi-mid layer global parmeter is max_report_luns, which is 511 */ 108/* scsi-mid layer global parmeter is max_report_luns, which is 511 */
105#define MPT2SAS_MAX_LUN (16895) 109#define MPT2SAS_MAX_LUN (16895)
106static int max_lun = MPT2SAS_MAX_LUN; 110static int max_lun = MPT2SAS_MAX_LUN;
@@ -7303,7 +7307,9 @@ _firmware_event_work(struct work_struct *work)
7303 case MPT2SAS_PORT_ENABLE_COMPLETE: 7307 case MPT2SAS_PORT_ENABLE_COMPLETE:
7304 ioc->start_scan = 0; 7308 ioc->start_scan = 0;
7305 7309
7306 7310 if (missing_delay[0] != -1 && missing_delay[1] != -1)
7311 mpt2sas_base_update_missing_delay(ioc, missing_delay[0],
7312 missing_delay[1]);
7307 7313
7308 dewtprintk(ioc, printk(MPT2SAS_INFO_FMT "port enable: complete " 7314 dewtprintk(ioc, printk(MPT2SAS_INFO_FMT "port enable: complete "
7309 "from worker thread\n", ioc->name)); 7315 "from worker thread\n", ioc->name));