scsi: pm80xx: Mask and unmask upper interrupt vectors 32-63
authorAjish Koshy <Ajish.Koshy@microchip.com>
Mon, 11 Apr 2022 06:46:02 +0000 (12:16 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 12 Apr 2022 01:59:49 +0000 (21:59 -0400)
commit294080eacf92a0781e6d43663448a55001ec8c64
treed92ea2682764f4c86a1593e9134651eb55e16892
parentf19fe8f354a6e7c2b9588f83af4876e34f0ce83e
scsi: pm80xx: Mask and unmask upper interrupt vectors 32-63

When upper inbound and outbound queues 32-63 are enabled, we see upper
vectors 32-63 in interrupt service routine. We need corresponding registers
to handle masking and unmasking of these upper interrupts.

To achieve this, we use registers MSGU_ODMR_U(0x34) to mask and
MSGU_ODMR_CLR_U(0x3C) to unmask the interrupts. In these registers bit 0-31
represents interrupt vectors 32-63.

Link: https://lore.kernel.org/r/20220411064603.668448-2-Ajish.Koshy@microchip.com
Fixes: 05c6c029a44d ("scsi: pm80xx: Increase number of supported queues")
Reviewed-by: John Garry <john.garry@huawei.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