Message ID | 20231110200759.56770-2-shannon.nelson@amd.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | pds_core: fix irq index bug and compiler warnings | expand |
On Fri, 10 Nov 2023 12:07:58 -0800 Shannon Nelson wrote: > Use the qcq's interrupt index, not the irq number, to mask > the interrupt. Patch 2 is whatever, but this one really should say what practical impact the change has (i.e. is it causing any user visible issues). Has impact == should include a Fixes tag; no impact == net-next.
diff --git a/drivers/net/ethernet/amd/pds_core/adminq.c b/drivers/net/ethernet/amd/pds_core/adminq.c index 045fe133f6ee..5beadabc2136 100644 --- a/drivers/net/ethernet/amd/pds_core/adminq.c +++ b/drivers/net/ethernet/amd/pds_core/adminq.c @@ -146,7 +146,7 @@ irqreturn_t pdsc_adminq_isr(int irq, void *data) } queue_work(pdsc->wq, &qcq->work); - pds_core_intr_mask(&pdsc->intr_ctrl[irq], PDS_CORE_INTR_MASK_CLEAR); + pds_core_intr_mask(&pdsc->intr_ctrl[qcq->intx], PDS_CORE_INTR_MASK_CLEAR); return IRQ_HANDLED; }
Use the qcq's interrupt index, not the irq number, to mask the interrupt. Reported-by: Joao Martins <joao.m.martins@oracle.com> Signed-off-by: Shannon Nelson <shannon.nelson@amd.com> --- drivers/net/ethernet/amd/pds_core/adminq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)