diff options
author | James Smart <jsmart2021@gmail.com> | 2021-10-20 14:14:12 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-10-20 23:33:45 -0400 |
commit | 7a1dda943630038dbe149268b00eb6a2946d38af (patch) | |
tree | 8fec802f12450708779e5a17a7f4a7b4404b0cab /net | |
parent | d305c253af693e69a36cedec880aca6d0c6d789d (diff) | |
download | linux-7a1dda943630038dbe149268b00eb6a2946d38af.tar.gz linux-7a1dda943630038dbe149268b00eb6a2946d38af.tar.bz2 linux-7a1dda943630038dbe149268b00eb6a2946d38af.zip |
scsi: lpfc: Correct sysfs reporting of loop support after SFP status change
Applications determine loop support in part by querying the 'pls' sysfs
node. Reporting of 'pls' (Private Loop Support) is derived from the
descriptor returned by the COMMON_GET_SLI4_PARAMETERS mailbox command,
which is issued during initialization or after a reset.
The value of this field may change if there is a dynamic SFP change. The
driver currently will not pick up the change as there was no reset
scenario.
Rework to commonize the sending of the COMMON_GET_SLI4_PARAMETERS
command. Add the calling of the routine after receipt of an async event
indicating an SFP change.
Link: https://lore.kernel.org/r/20211020211417.88754-4-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions