diff options
author | Kashyap, Desai <kashyap.desai@lsi.com> | 2011-06-14 01:27:31 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-06-29 17:16:53 -0400 |
commit | ab3e5f60d1fc8fe725d02510ff820ff207a8dbef (patch) | |
tree | 27898e4b38f078469e43c741403be419fdd16d41 /drivers/scsi | |
parent | 7821578caa8cb831868989041112ab808029ca65 (diff) |
[SCSI] mpt2sas: Adding support for customer specific branding
Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_base.c | 19 | ||||
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_base.h | 3 |
2 files changed, 20 insertions, 2 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.c b/drivers/scsi/mpt2sas/mpt2sas_base.c index 1da606cb2461..83035bd1c489 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_base.c +++ b/drivers/scsi/mpt2sas/mpt2sas_base.c | |||
@@ -1740,9 +1740,11 @@ _base_display_dell_branding(struct MPT2SAS_ADAPTER *ioc) | |||
1740 | static void | 1740 | static void |
1741 | _base_display_intel_branding(struct MPT2SAS_ADAPTER *ioc) | 1741 | _base_display_intel_branding(struct MPT2SAS_ADAPTER *ioc) |
1742 | { | 1742 | { |
1743 | if (ioc->pdev->subsystem_vendor == PCI_VENDOR_ID_INTEL && | 1743 | if (ioc->pdev->subsystem_vendor != PCI_VENDOR_ID_INTEL) |
1744 | ioc->pdev->device == MPI2_MFGPAGE_DEVID_SAS2008) { | 1744 | return; |
1745 | 1745 | ||
1746 | switch (ioc->pdev->device) { | ||
1747 | case MPI2_MFGPAGE_DEVID_SAS2008: | ||
1746 | switch (ioc->pdev->subsystem_device) { | 1748 | switch (ioc->pdev->subsystem_device) { |
1747 | case MPT2SAS_INTEL_RMS2LL080_SSDID: | 1749 | case MPT2SAS_INTEL_RMS2LL080_SSDID: |
1748 | printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, | 1750 | printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
@@ -1752,7 +1754,20 @@ _base_display_intel_branding(struct MPT2SAS_ADAPTER *ioc) | |||
1752 | printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, | 1754 | printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, |
1753 | MPT2SAS_INTEL_RMS2LL040_BRANDING); | 1755 | MPT2SAS_INTEL_RMS2LL040_BRANDING); |
1754 | break; | 1756 | break; |
1757 | default: | ||
1758 | break; | ||
1755 | } | 1759 | } |
1760 | case MPI2_MFGPAGE_DEVID_SAS2308_2: | ||
1761 | switch (ioc->pdev->subsystem_device) { | ||
1762 | case MPT2SAS_INTEL_RS25GB008_SSDID: | ||
1763 | printk(MPT2SAS_INFO_FMT "%s\n", ioc->name, | ||
1764 | MPT2SAS_INTEL_RS25GB008_BRANDING); | ||
1765 | break; | ||
1766 | default: | ||
1767 | break; | ||
1768 | } | ||
1769 | default: | ||
1770 | break; | ||
1756 | } | 1771 | } |
1757 | } | 1772 | } |
1758 | 1773 | ||
diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.h b/drivers/scsi/mpt2sas/mpt2sas_base.h index 8418abbd3134..2dced43b0cde 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_base.h +++ b/drivers/scsi/mpt2sas/mpt2sas_base.h | |||
@@ -161,12 +161,15 @@ | |||
161 | "Intel Integrated RAID Module RMS2LL080" | 161 | "Intel Integrated RAID Module RMS2LL080" |
162 | #define MPT2SAS_INTEL_RMS2LL040_BRANDING \ | 162 | #define MPT2SAS_INTEL_RMS2LL040_BRANDING \ |
163 | "Intel Integrated RAID Module RMS2LL040" | 163 | "Intel Integrated RAID Module RMS2LL040" |
164 | #define MPT2SAS_INTEL_RS25GB008_BRANDING \ | ||
165 | "Intel(R) RAID Controller RS25GB008" | ||
164 | 166 | ||
165 | /* | 167 | /* |
166 | * Intel HBA SSDIDs | 168 | * Intel HBA SSDIDs |
167 | */ | 169 | */ |
168 | #define MPT2SAS_INTEL_RMS2LL080_SSDID 0x350E | 170 | #define MPT2SAS_INTEL_RMS2LL080_SSDID 0x350E |
169 | #define MPT2SAS_INTEL_RMS2LL040_SSDID 0x350F | 171 | #define MPT2SAS_INTEL_RMS2LL040_SSDID 0x350F |
172 | #define MPT2SAS_INTEL_RS25GB008_SSDID 0x3000 | ||
170 | 173 | ||
171 | 174 | ||
172 | /* | 175 | /* |