mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
scsi: mpi3mr: Add PCI checks where SAS5116 diverges from SAS4116
[ Upstream commit c9260ff28e ]
Add PCI IDs checks for the cases where SAS5116 diverges from SAS4116 in
behavior.
Signed-off-by: Sumit Saxena <sumit.saxena@broadcom.com>
Link: https://lore.kernel.org/r/20231123160132.4155-3-sumit.saxena@broadcom.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
177fe2a728
commit
6e1613da0a
|
|
@ -1892,7 +1892,8 @@ static int mpi3mr_create_op_reply_q(struct mpi3mr_ioc *mrioc, u16 qidx)
|
|||
|
||||
reply_qid = qidx + 1;
|
||||
op_reply_q->num_replies = MPI3MR_OP_REP_Q_QD;
|
||||
if (!mrioc->pdev->revision)
|
||||
if ((mrioc->pdev->device == MPI3_MFGPAGE_DEVID_SAS4116) &&
|
||||
!mrioc->pdev->revision)
|
||||
op_reply_q->num_replies = MPI3MR_OP_REP_Q_QD4K;
|
||||
op_reply_q->ci = 0;
|
||||
op_reply_q->ephase = 1;
|
||||
|
|
|
|||
|
|
@ -5095,7 +5095,10 @@ mpi3mr_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
|||
mpi3mr_init_drv_cmd(&mrioc->evtack_cmds[i],
|
||||
MPI3MR_HOSTTAG_EVTACKCMD_MIN + i);
|
||||
|
||||
if (pdev->revision)
|
||||
if ((pdev->device == MPI3_MFGPAGE_DEVID_SAS4116) &&
|
||||
!pdev->revision)
|
||||
mrioc->enable_segqueue = false;
|
||||
else
|
||||
mrioc->enable_segqueue = true;
|
||||
|
||||
init_waitqueue_head(&mrioc->reset_waitq);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user