Skip to content
Commit 9658b10f authored by Marc Zyngier's avatar Marc Zyngier Committed by Joey Gouly
Browse files

gpio: Allow per-parent interrupt data



The core gpiolib code is able to deal with multiple interrupt parents
for a single gpio irqchip. It however only allows a single piece
of data to be conveyed to all flow handlers (either the gpio_chip
or some other, driver-specific data).

This means that drivers have to go through some interesting dance
to find the correct context, something that isn't great in interrupt
context (see aebdc8ab for a prime
example).

Instead, offer an optional way for a pinctrl/gpio driver to provide
an array of pointers which gets used to provide the correct context
to the flow handler.

Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Signed-off-by: Joey Gouly's avatarJoey Gouly <joey.gouly@arm.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 4c17ca27
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment