Skip to content

Commit c554ac9

Browse files
chleroympe
authored andcommitted
powerpc/8xx: fix cpm_cascade() dual end of interrupt
cpm_cascade() doesn't have to call eoi() as it is already called by handle_fasteoi_irq() And cpm_get_irq() will always return an unsigned int so the test is useless Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 3d4f5f5 commit c554ac9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

arch/powerpc/platforms/8xx/m8xx_setup.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,7 @@ void __noreturn mpc8xx_restart(char *cmd)
217217

218218
static void cpm_cascade(struct irq_desc *desc)
219219
{
220-
struct irq_chip *chip = irq_desc_get_chip(desc);
221-
int cascade_irq = cpm_get_irq();
222-
223-
if (cascade_irq >= 0)
224-
generic_handle_irq(cascade_irq);
225-
226-
chip->irq_eoi(&desc->irq_data);
220+
generic_handle_irq(cpm_get_irq());
227221
}
228222

229223
/* Initialize the internal interrupt controllers. The number of

0 commit comments

Comments
 (0)