scsi: mpt3sas: Handle trigger page after firmware update
authorSuganath Prabu S <suganath-prabu.subramani@broadcom.com>
Thu, 26 Nov 2020 09:43:10 +0000 (15:13 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 9 Dec 2020 16:34:19 +0000 (11:34 -0500)
commit9b271c69128b46e2735df732819c5a5b1f4252af
treed79b49ab852cb4da798db8a4b91dcc5416b35522
parent0e17a87c5950b91aa5ed11ba569b46dea13b1e0d
scsi: mpt3sas: Handle trigger page after firmware update

If a firmware update adds support for the trigger pages, then the driver
should handle this by writing the existing trigger data from the driver's
internal data structure to the corresponding trigger pages in NVRAM.

Also handle the case where the trigger page capability is no longer present
after a firmware downgrade.

Link: https://lore.kernel.org/r/20201126094311.8686-8-suganath-prabu.subramani@broadcom.com
Signed-off-by: Suganath Prabu S <suganath-prabu.subramani@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.c