scsi: mpt3sas: Use configured PCIe link speed, not max
authorSreekanth Reddy <sreekanth.reddy@broadcom.com>
Mon, 24 Jun 2019 14:42:54 +0000 (10:42 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 27 Jun 2019 02:58:34 +0000 (22:58 -0400)
commit48d6f0a6a5595abb38d899dbf8ca09f7dc858d2b
treea6483c319e1636dca82ec7248f6ecaf23d2f732d
parent381abbd1f7f978471722784895d1ff184ef86929
scsi: mpt3sas: Use configured PCIe link speed, not max

When enabling high iops queues, the driver should use the HBA's configured
PCIe link speed instead of looking for the maximum link speed.

I.e. enable high iops queues only if Aero/Sea HBA's configured PCIe link
speed is set to 16GT/s.

Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.c