]> asedeno.scripts.mit.edu Git - linux.git/commit
soc: fsl: qe: use qe_ic_cascade_{low, high}_mpic also on 83xx
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Thu, 28 Nov 2019 14:55:16 +0000 (15:55 +0100)
committerLi Yang <leoyang.li@nxp.com>
Mon, 9 Dec 2019 19:54:30 +0000 (13:54 -0600)
commit273e66721e368764659dde52ee4702567c921f49
tree0e4d5b68f6295bc7e20ae952cff4abca45c49d3d
parentea275d1f07c1f2fbaa48f0e100ee23a80ac909dc
soc: fsl: qe: use qe_ic_cascade_{low, high}_mpic also on 83xx

The *_ipic and *_mpic handlers are almost identical - the only
difference is that the latter end with an unconditional
chip->irq_eoi() call. Since IPIC does not have ->irq_eoi, we can
reduce some code duplication by calling irq_eoi conditionally.

This is similar to what is already done in mpc8xxx_gpio_irq_cascade().

This leaves the functions slightly misnamed, but that will be fixed in
a subsequent patch.

Reviewed-by: Timur Tabi <timur@kernel.org>
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
arch/powerpc/platforms/83xx/misc.c
include/soc/fsl/qe/qe_ic.h