linux_dsm_epyc7002/drivers/scsi/lpfc
James Smart cd71348ad7 scsi: lpfc: Correct speeds on SFP swap
Supported speeds is not updated when SFP is removed or replaced

Supported speed is obtained from lmt field in READ_CONFIG mailbox
response. Driver updates supported speeds only once from PCI probe
path. After that it is never updated. So, supported speeds remains the
same till reboot or driver reload.

When SFP is removed or inserted, driver gets SLI-Port Event ACQE.  If
SFP is removed, lmt wil have value 0. If a different SFP is inserted,
lmt will have value according to its supported speeds.  So, afterr
SLI-Port Event ACQE handling path, send READ_CONFIG mailbox and update
supported speeds. If READ_CONFIG fails, set supported speeds to
unknown and log.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-11-06 20:42:50 -05:00
..
lpfc_attr.c SCSI misc on 20181024 2018-10-25 07:40:30 -07:00
lpfc_attr.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_bsg.c scsi: lpfc: remove a bogus pci_dma_sync_single_for_device call 2018-10-15 22:41:00 -04:00
lpfc_bsg.h scsi: lpfc: add support to retrieve firmware logs 2018-09-11 20:37:33 -04:00
lpfc_compat.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_crtn.h scsi: lpfc: add support to retrieve firmware logs 2018-09-11 20:37:33 -04:00
lpfc_ct.c scsi: lpfc: Correct irq handling via locks when taking adapter offline 2018-09-11 20:37:33 -04:00
lpfc_debugfs.c SCSI misc on 20181024 2018-10-25 07:40:30 -07:00
lpfc_debugfs.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_disc.h scsi: lpfc: Limit tracking of tgt queue depth in fast path 2018-08-02 15:45:19 -04:00
lpfc_els.c scsi: lpfc: Correct irq handling via locks when taking adapter offline 2018-09-11 20:37:33 -04:00
lpfc_hbadisc.c scsi: lpfc: Remove set but not used variable 'psli' 2018-10-16 21:46:46 -04:00
lpfc_hw4.h scsi: lpfc: add support to retrieve firmware logs 2018-09-11 20:37:33 -04:00
lpfc_hw.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_ids.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_init.c scsi: lpfc: Correct speeds on SFP swap 2018-11-06 20:42:50 -05:00
lpfc_logmsg.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_mbox.c scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_mem.c scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_nl.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_nportdisc.c scsi: lpfc: Fix GFT_ID and PRLI logic for RSCN 2018-09-11 20:37:32 -04:00
lpfc_nvme.c SCSI misc on 20181024 2018-10-25 07:40:30 -07:00
lpfc_nvme.h scsi: lpfc: Limit tracking of tgt queue depth in fast path 2018-08-02 15:45:19 -04:00
lpfc_nvmet.c scsi: lpfc: Fix errors in log messages. 2018-09-11 20:37:33 -04:00
lpfc_nvmet.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_scsi.c scsi: lpfc: reduce locking when updating statistics 2018-09-11 20:37:33 -04:00
lpfc_scsi.h scsi: lpfc: Limit tracking of tgt queue depth in fast path 2018-08-02 15:45:19 -04:00
lpfc_sli4.h scsi: lpfc: add support to retrieve firmware logs 2018-09-11 20:37:33 -04:00
lpfc_sli.c scsi: lpfc: Remove set but not used variables 'fc_hdr' and 'hw_page_size' 2018-10-16 21:23:55 -04:00
lpfc_sli.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_version.h scsi: lpfc: update driver version to 12.0.0.7 2018-09-11 20:37:34 -04:00
lpfc_vport.c scsi: lpfc: Correct irq handling via locks when taking adapter offline 2018-09-11 20:37:33 -04:00
lpfc_vport.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc.h SCSI misc on 20181024 2018-10-25 07:40:30 -07:00
Makefile scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00