scsi: lpfc: Create a sysfs entry called lpfc_xcvr_data for transceiver info
authorJustin Tee <justin.tee@broadcom.com>
Mon, 17 Oct 2022 16:43:22 +0000 (09:43 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 22 Oct 2022 03:19:15 +0000 (03:19 +0000)
commit479b0917e4477f49df2e3be454aac3cfa5dec171
tree907a63501668dd00938234d962e97887d23ef3b4
parenteaf660e4282ba11239704b2b89ae94feae2010e0
scsi: lpfc: Create a sysfs entry called lpfc_xcvr_data for transceiver info

The DUMP_MEMORY mailbox command is implemented for page A0 and A2 to
retrieve transceiver information from firmware.

The mailbox command output is then formatted to print raw data values for
userspace to parse via sysfs.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20221017164323.14536-4-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_attr.c
drivers/scsi/lpfc/lpfc_crtn.h
drivers/scsi/lpfc/lpfc_els.c
drivers/scsi/lpfc/lpfc_hw4.h