aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_init.c
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2010-09-15 17:52:31 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-10-07 18:09:42 -0400
commit0af5d708aae3aef1f98a1c689007b92db2c10277 (patch)
tree1e612e63740b59fcc9ab2fd21ace4844be2c3907 /drivers/scsi/lpfc/lpfc_init.c
parentd2b5f10e5b93633a40d9263383b914f06019f00b (diff)
[SCSI] lpfc: prep for fc host dev loss tmo support
This removes the driver's get_host_def_dev_loss_tmo callback and just has the driver set the dev loss using the fc class fc_host_dev_loss_tmo macro like is done for other fc params. It also adds compat support for the driver's existing dev loss and nodev sysfs and modparams. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index da9ba06ad583..87a4d09a6641 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -2817,6 +2817,8 @@ void lpfc_host_attrib_init(struct Scsi_Host *shost)
2817 (((uint32_t) vport->fc_sparam.cmn.bbRcvSizeMsb & 0x0F) << 8) | 2817 (((uint32_t) vport->fc_sparam.cmn.bbRcvSizeMsb & 0x0F) << 8) |
2818 (uint32_t) vport->fc_sparam.cmn.bbRcvSizeLsb; 2818 (uint32_t) vport->fc_sparam.cmn.bbRcvSizeLsb;
2819 2819
2820 fc_host_dev_loss_tmo(shost) = vport->cfg_devloss_tmo;
2821
2820 /* This value is also unchanging */ 2822 /* This value is also unchanging */
2821 memset(fc_host_active_fc4s(shost), 0, 2823 memset(fc_host_active_fc4s(shost), 0,
2822 sizeof(fc_host_active_fc4s(shost))); 2824 sizeof(fc_host_active_fc4s(shost)));