diff options
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 233c912b63ce..335bce6f12cf 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -780,6 +780,9 @@ lpfc_get_hba_model_desc(struct lpfc_hba * phba, uint8_t * mdp, uint8_t * descp) | |||
780 | pci_read_config_dword(phba->pcidev, PCI_VENDOR_ID, &id); | 780 | pci_read_config_dword(phba->pcidev, PCI_VENDOR_ID, &id); |
781 | 781 | ||
782 | switch ((id >> 16) & 0xffff) { | 782 | switch ((id >> 16) & 0xffff) { |
783 | case PCI_DEVICE_ID_FIREFLY: | ||
784 | strcpy(str, "LP6000 1"); | ||
785 | break; | ||
783 | case PCI_DEVICE_ID_SUPERFLY: | 786 | case PCI_DEVICE_ID_SUPERFLY: |
784 | if (vp->rev.biuRev >= 1 && vp->rev.biuRev <= 3) | 787 | if (vp->rev.biuRev >= 1 && vp->rev.biuRev <= 3) |
785 | strcpy(str, "LP7000 1"); | 788 | strcpy(str, "LP7000 1"); |
@@ -837,6 +840,9 @@ lpfc_get_hba_model_desc(struct lpfc_hba * phba, uint8_t * mdp, uint8_t * descp) | |||
837 | case PCI_DEVICE_ID_LP10000S: | 840 | case PCI_DEVICE_ID_LP10000S: |
838 | strcpy(str, "LP10000-S 2"); | 841 | strcpy(str, "LP10000-S 2"); |
839 | break; | 842 | break; |
843 | default: | ||
844 | memset(str, 0, 16); | ||
845 | break; | ||
840 | } | 846 | } |
841 | if (mdp) | 847 | if (mdp) |
842 | sscanf(str, "%s", mdp); | 848 | sscanf(str, "%s", mdp); |
@@ -1662,6 +1668,8 @@ lpfc_pci_remove_one(struct pci_dev *pdev) | |||
1662 | static struct pci_device_id lpfc_id_table[] = { | 1668 | static struct pci_device_id lpfc_id_table[] = { |
1663 | {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_VIPER, | 1669 | {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_VIPER, |
1664 | PCI_ANY_ID, PCI_ANY_ID, }, | 1670 | PCI_ANY_ID, PCI_ANY_ID, }, |
1671 | {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_FIREFLY, | ||
1672 | PCI_ANY_ID, PCI_ANY_ID, }, | ||
1665 | {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_THOR, | 1673 | {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_THOR, |
1666 | PCI_ANY_ID, PCI_ANY_ID, }, | 1674 | PCI_ANY_ID, PCI_ANY_ID, }, |
1667 | {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_PEGASUS, | 1675 | {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_PEGASUS, |