scsi: pm80xx: Handle non-fatal errors
authorAjish Koshy <Ajish.Koshy@microchip.com>
Tue, 22 Feb 2022 09:26:18 +0000 (14:56 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 28 Feb 2022 02:37:28 +0000 (21:37 -0500)
commit80cac47b08958f98c3e376ca2e1011c9ab880561
tree9f4999c6c3533d01965c48b6402758192959ba92
parent55a94551f61fb8ea1ab38e5959d97dfcedc9e833
scsi: pm80xx: Handle non-fatal errors

Firmware expects host driver to clear scratchpad rsvd 0 register after
non-fatal error is found.

This is done when firmware raises fatal error interrupt and indicates
non-fatal error. At this point firmware updates scratchpad rsvd 0 register
with non-fatal error value. Here host has to clear the register after
reading it during non-fatal errors.

Rename:

 - MSGU_HOST_SCRATCH_PAD_6 to MSGU_SCRATCH_PAD_RSVD_0

 - MSGU_HOST_SCRATCH_PAD_7 to MSGU_SCRATCH_PAD_RSVD_1

Link: https://lore.kernel.org/r/20220222092618.108198-1-Ajish.Koshy@microchip.com
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Acked-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Ajish Koshy <Ajish.Koshy@microchip.com>
Signed-off-by: Viswas G <Viswas.G@microchip.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pm8001/pm80xx_hwi.c
drivers/scsi/pm8001/pm80xx_hwi.h