aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt2sas/mpt2sas_base.c
diff options
context:
space:
mode:
authorKashyap, Desai <kashyap.desai@lsi.com>2011-06-14 01:27:31 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-03 14:40:49 -0400
commite670d472aaaa51f93a5a49de00dc573eea8a8486 (patch)
tree901b8efe1e190e00435ecc0789d7e1a00eabef7f /drivers/scsi/mpt2sas/mpt2sas_base.c
parentdb1f8f788b108fa627f011355ff9ba5e3e789fa6 (diff)
mpt2sas: Adding support for customer specific branding
commit ab3e5f60d1fc8fe725d02510ff820ff207a8dbef upstream. Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_base.c')
-rw-r--r--drivers/scsi/mpt2sas/mpt2sas_base.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.c b/drivers/scsi/mpt2sas/mpt2sas_base.c
index 1da606cb246..83035bd1c48 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)
1740static void 1740static 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