diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_ct.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_ct.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/drivers/scsi/lpfc/lpfc_ct.c b/drivers/scsi/lpfc/lpfc_ct.c index 896c7b0351e5..0e532f072eb3 100644 --- a/drivers/scsi/lpfc/lpfc_ct.c +++ b/drivers/scsi/lpfc/lpfc_ct.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************* | 1 | /******************************************************************* |
2 | * This file is part of the Emulex Linux Device Driver for * | 2 | * This file is part of the Emulex Linux Device Driver for * |
3 | * Fibre Channel Host Bus Adapters. * | 3 | * Fibre Channel Host Bus Adapters. * |
4 | * Copyright (C) 2004-2008 Emulex. All rights reserved. * | 4 | * Copyright (C) 2004-2009 Emulex. All rights reserved. * |
5 | * EMULEX and SLI are trademarks of Emulex. * | 5 | * EMULEX and SLI are trademarks of Emulex. * |
6 | * www.emulex.com * | 6 | * www.emulex.com * |
7 | * * | 7 | * * |
@@ -32,8 +32,10 @@ | |||
32 | #include <scsi/scsi_host.h> | 32 | #include <scsi/scsi_host.h> |
33 | #include <scsi/scsi_transport_fc.h> | 33 | #include <scsi/scsi_transport_fc.h> |
34 | 34 | ||
35 | #include "lpfc_hw4.h" | ||
35 | #include "lpfc_hw.h" | 36 | #include "lpfc_hw.h" |
36 | #include "lpfc_sli.h" | 37 | #include "lpfc_sli.h" |
38 | #include "lpfc_sli4.h" | ||
37 | #include "lpfc_nl.h" | 39 | #include "lpfc_nl.h" |
38 | #include "lpfc_disc.h" | 40 | #include "lpfc_disc.h" |
39 | #include "lpfc_scsi.h" | 41 | #include "lpfc_scsi.h" |
@@ -267,8 +269,6 @@ lpfc_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp, | |||
267 | uint32_t tmo, uint8_t retry) | 269 | uint32_t tmo, uint8_t retry) |
268 | { | 270 | { |
269 | struct lpfc_hba *phba = vport->phba; | 271 | struct lpfc_hba *phba = vport->phba; |
270 | struct lpfc_sli *psli = &phba->sli; | ||
271 | struct lpfc_sli_ring *pring = &psli->ring[LPFC_ELS_RING]; | ||
272 | IOCB_t *icmd; | 272 | IOCB_t *icmd; |
273 | struct lpfc_iocbq *geniocb; | 273 | struct lpfc_iocbq *geniocb; |
274 | int rc; | 274 | int rc; |
@@ -331,7 +331,7 @@ lpfc_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp, | |||
331 | geniocb->drvrTimeout = icmd->ulpTimeout + LPFC_DRVR_TIMEOUT; | 331 | geniocb->drvrTimeout = icmd->ulpTimeout + LPFC_DRVR_TIMEOUT; |
332 | geniocb->vport = vport; | 332 | geniocb->vport = vport; |
333 | geniocb->retry = retry; | 333 | geniocb->retry = retry; |
334 | rc = lpfc_sli_issue_iocb(phba, pring, geniocb, 0); | 334 | rc = lpfc_sli_issue_iocb(phba, LPFC_ELS_RING, geniocb, 0); |
335 | 335 | ||
336 | if (rc == IOCB_ERROR) { | 336 | if (rc == IOCB_ERROR) { |
337 | lpfc_sli_release_iocbq(phba, geniocb); | 337 | lpfc_sli_release_iocbq(phba, geniocb); |
@@ -1578,6 +1578,9 @@ lpfc_fdmi_cmd(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, int cmdcode) | |||
1578 | case LA_8GHZ_LINK: | 1578 | case LA_8GHZ_LINK: |
1579 | ae->un.PortSpeed = HBA_PORTSPEED_8GBIT; | 1579 | ae->un.PortSpeed = HBA_PORTSPEED_8GBIT; |
1580 | break; | 1580 | break; |
1581 | case LA_10GHZ_LINK: | ||
1582 | ae->un.PortSpeed = HBA_PORTSPEED_10GBIT; | ||
1583 | break; | ||
1581 | default: | 1584 | default: |
1582 | ae->un.PortSpeed = | 1585 | ae->un.PortSpeed = |
1583 | HBA_PORTSPEED_UNKNOWN; | 1586 | HBA_PORTSPEED_UNKNOWN; |
@@ -1729,8 +1732,10 @@ lpfc_decode_firmware_rev(struct lpfc_hba *phba, char *fwrevision, int flag) | |||
1729 | uint32_t *ptr, str[4]; | 1732 | uint32_t *ptr, str[4]; |
1730 | uint8_t *fwname; | 1733 | uint8_t *fwname; |
1731 | 1734 | ||
1732 | if (vp->rev.rBit) { | 1735 | if (phba->sli_rev == LPFC_SLI_REV4) |
1733 | if (psli->sli_flag & LPFC_SLI2_ACTIVE) | 1736 | sprintf(fwrevision, "%s", vp->rev.opFwName); |
1737 | else if (vp->rev.rBit) { | ||
1738 | if (psli->sli_flag & LPFC_SLI_ACTIVE) | ||
1734 | rev = vp->rev.sli2FwRev; | 1739 | rev = vp->rev.sli2FwRev; |
1735 | else | 1740 | else |
1736 | rev = vp->rev.sli1FwRev; | 1741 | rev = vp->rev.sli1FwRev; |
@@ -1756,7 +1761,7 @@ lpfc_decode_firmware_rev(struct lpfc_hba *phba, char *fwrevision, int flag) | |||
1756 | } | 1761 | } |
1757 | b4 = (rev & 0x0000000f); | 1762 | b4 = (rev & 0x0000000f); |
1758 | 1763 | ||
1759 | if (psli->sli_flag & LPFC_SLI2_ACTIVE) | 1764 | if (psli->sli_flag & LPFC_SLI_ACTIVE) |
1760 | fwname = vp->rev.sli2FwName; | 1765 | fwname = vp->rev.sli2FwName; |
1761 | else | 1766 | else |
1762 | fwname = vp->rev.sli1FwName; | 1767 | fwname = vp->rev.sli1FwName; |