diff options
author | James.Smart@Emulex.Com <James.Smart@Emulex.Com> | 2005-06-25 10:34:22 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-07-02 18:18:52 -0400 |
commit | 06325e7459b54fc924d00fe363068f6cbf284571 (patch) | |
tree | 4fc2b7b6b9e77e489ed9b5e64ad77393ba23b15f | |
parent | 564b2960833f8802ae2b7b7ad840f154647549c7 (diff) |
[SCSI] lpfc: Add LP6000 PCI ID
Fix driver not seeing LP6000. Fix: add PCI id to the pci_device_id
table and a short description for the HBA in get_hba_model_desc().
Also add a default clause to the switch statement that parses the
various PCI ID's.
Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-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, |