]> git.hungrycats.org Git - linux/commitdiff
cxl: Add missing return statement after handling AFU errror
authorIan Munsie <imunsie@au1.ibm.com>
Wed, 4 Feb 2015 08:10:38 +0000 (19:10 +1100)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 24 Mar 2015 01:02:54 +0000 (21:02 -0400)
commit a6130ed253a931d2169c26ab0958d81b0dce4d6e upstream.

We were missing a return statement in the PSL interrupt handler in the
case of an AFU error, which would trigger an "Unhandled CXL PSL IRQ"
warning. We do actually handle these type of errors (by notifying
userspace), so add the missing return IRQ_HANDLED so we don't throw
unecessary warnings.

Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/cxl/irq.c

index 336020c8e1af7ce07b2dec169c7415abc0bf2a15..6fe4027feb7d771e22c18a5d758781bfa22fa4eb 100644 (file)
@@ -174,6 +174,7 @@ static irqreturn_t cxl_irq(int irq, void *data)
                }
 
                cxl_ack_irq(ctx, CXL_PSL_TFC_An_A, 0);
+               return IRQ_HANDLED;
        }
        if (dsisr & CXL_PSL_DSISR_An_OC)
                pr_devel("CXL interrupt: OS Context Warning\n");