[PATCH] scsi: mpt3sas: add device ID 0x009f for SAS9300-4i4e

Ivy Lopez <[email protected]>
Newsgroups org.kernel.vger.linux-scsi,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
Add PCI device ID 0x009f (MPI25_MFGPAGE_DEVID_SAS3008_1) to the
supported device table. This is a Fury/3008-family variant found
on some SAS9300-4i4e cards sourced from the resale market, distinct
from the more common 0x0097 ID used by most 4i4e cards.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=219330
Signed-off-by: Ivy Lopez <[email protected]>
---
 drivers/scsi/mpt3sas/mpi/mpi2_cnfg.h | 1 +
 drivers/scsi/mpt3sas/mpt3sas_scsih.c | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/drivers/scsi/mpt3sas/mpi/mpi2_cnfg.h b/drivers/scsi/mpt3sas/mpi/mpi2_cnfg.h
index 02bf26ca976e..6d7c5bc13377 100644
--- a/drivers/scsi/mpt3sas/mpi/mpi2_cnfg.h
+++ b/drivers/scsi/mpt3sas/mpi/mpi2_cnfg.h
@@ -563,6 +563,7 @@ typedef struct _MPI2_CONFIG_REPLY {
 /*MPI v2.5 SAS products */
 #define MPI25_MFGPAGE_DEVID_SAS3004                 (0x0096)
 #define MPI25_MFGPAGE_DEVID_SAS3008                 (0x0097)
+#define MPI25_MFGPAGE_DEVID_SAS3008_1				(0x009F)
 #define MPI25_MFGPAGE_DEVID_SAS3108_1               (0x0090)
 #define MPI25_MFGPAGE_DEVID_SAS3108_2               (0x0091)
 #define MPI25_MFGPAGE_DEVID_SAS3108_5               (0x0094)
diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c
index 12caffeed3a0..9122ee86446c 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c
+++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c
@@ -13303,6 +13303,7 @@ _scsih_determine_hba_mpi_version(struct pci_dev *pdev)
 		return MPI2_VERSION;
 	case MPI25_MFGPAGE_DEVID_SAS3004:
 	case MPI25_MFGPAGE_DEVID_SAS3008:
+	case MPI25_MFGPAGE_DEVID_SAS3008_1:
 	case MPI25_MFGPAGE_DEVID_SAS3108_1:
 	case MPI25_MFGPAGE_DEVID_SAS3108_2:
 	case MPI25_MFGPAGE_DEVID_SAS3108_5:
@@ -13907,6 +13908,8 @@ static const struct pci_device_id mpt3sas_pci_table[] = {
 		PCI_ANY_ID, PCI_ANY_ID },
 	{ MPI2_MFGPAGE_VENDORID_LSI, MPI25_MFGPAGE_DEVID_SAS3008,
 		PCI_ANY_ID, PCI_ANY_ID },
+	{ MPI2_MFGPAGE_VENDORID_LSI, MPI25_MFGPAGE_DEVID_SAS3008_1,
+		PCI_ANY_ID, PCI_ANY_ID },
 	/* Invader ~ 3108 */
 	{ MPI2_MFGPAGE_VENDORID_LSI, MPI25_MFGPAGE_DEVID_SAS3108_1,
 		PCI_ANY_ID, PCI_ANY_ID },
-- 
2.55.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.