[Skiboot] [PATCH v3] Add P9 DIO interrupt support
Stewart Smith
stewart at linux.ibm.com
Fri May 17 08:20:47 AEST 2019
Lei YU <mine260309 at gmail.com> writes:
> On P9 there are GPIO port 0, 1, 2 for GPIO interrupt, and DIO interrupt
> is used to handle the interrupts.
>
> Add support to the DIO interrupts:
> 1. Add dio_interrupt_register(chip, port, callback) to register the
> interrupt;
> 2. Add dio_interrupt_deregister(chip, port, callback) to deregister;
> 3. When interrupt on the port occurs, callback is invoked, and the
> interrupt status is cleared.
>
> Signed-off-by: Lei YU <mine260309 at gmail.com>
>
> ---
> v3: Add proc_chip* as callback argument for the handler to know which
> chip the interrupt occured on.
> ---
> v2:
> 1. Put the callbacks into struct p9_dio in proc_chip
> 2. Register/deregister the DIO interrupt with chip and port, so that it
> works on all CPUs.
> ---
Thanks, merged to master as of df34cedd050a966b334973c933e5e7e90164b6ec
--
Stewart Smith
OPAL Architect, IBM.
More information about the Skiboot
mailing list