diff options
author | James Smart <James.Smart@Emulex.Com> | 2006-08-18 17:46:43 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-09-02 16:35:48 -0400 |
commit | d2873e4c1ef293ee6d66456fb84448e258a487fa (patch) | |
tree | 60941dc2fdd12b50cc94956eacc430e86e6f1c74 /drivers/scsi/lpfc/lpfc_hbadisc.c | |
parent | f14e2e29cdd07f80de6dec168dc2bb39de37eec3 (diff) |
[SCSI] lpfc 8.1.10 : Add support to post events via new FC event interfaces
Add support to post events via new FC event interfaces
Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_hbadisc.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_hbadisc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c index b2f1552f1848..53821e5778b3 100644 --- a/drivers/scsi/lpfc/lpfc_hbadisc.c +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c | |||
@@ -340,6 +340,9 @@ lpfc_linkdown(struct lpfc_hba * phba) | |||
340 | spin_unlock_irq(phba->host->host_lock); | 340 | spin_unlock_irq(phba->host->host_lock); |
341 | } | 341 | } |
342 | 342 | ||
343 | fc_host_post_event(phba->host, fc_get_event_number(), | ||
344 | FCH_EVT_LINKDOWN, 0); | ||
345 | |||
343 | /* Clean up any firmware default rpi's */ | 346 | /* Clean up any firmware default rpi's */ |
344 | if ((mb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL))) { | 347 | if ((mb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL))) { |
345 | lpfc_unreg_did(phba, 0xffffffff, mb); | 348 | lpfc_unreg_did(phba, 0xffffffff, mb); |
@@ -427,6 +430,9 @@ lpfc_linkup(struct lpfc_hba * phba) | |||
427 | struct list_head *listp, *node_list[7]; | 430 | struct list_head *listp, *node_list[7]; |
428 | int i; | 431 | int i; |
429 | 432 | ||
433 | fc_host_post_event(phba->host, fc_get_event_number(), | ||
434 | FCH_EVT_LINKUP, 0); | ||
435 | |||
430 | spin_lock_irq(phba->host->host_lock); | 436 | spin_lock_irq(phba->host->host_lock); |
431 | phba->hba_state = LPFC_LINK_UP; | 437 | phba->hba_state = LPFC_LINK_UP; |
432 | phba->fc_flag &= ~(FC_PT2PT | FC_PT2PT_PLOGI | FC_ABORT_DISCOVERY | | 438 | phba->fc_flag &= ~(FC_PT2PT | FC_PT2PT_PLOGI | FC_ABORT_DISCOVERY | |