summaryrefslogtreecommitdiff
path: root/drivers/irqchip/irq-gic-v3-its.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2020-05-14 11:39:01 +0300
committerMarc Zyngier <maz@kernel.org>2020-05-18 12:30:21 +0300
commit337cbeb2c13eb4cab84f576fd402d7ae4ed31ae1 (patch)
tree25e52b0caff13140434a929d697fd9f9d7b92947 /drivers/irqchip/irq-gic-v3-its.c
parent5c8f77a278737a6af44a892f0700d9aadb2b0de0 (diff)
downloadlinux-337cbeb2c13eb4cab84f576fd402d7ae4ed31ae1.tar.xz
genirq/irq_sim: Simplify the API
The interrupt simulator API exposes a lot of custom data structures and functions and doesn't reuse the interfaces already exposed by the irq subsystem. This patch tries to address it. We hide all the simulator-related data structures from users and instead rely on the well-known irq domain. When creating the interrupt simulator the user receives a pointer to a newly created irq_domain and can use it to create mappings for simulated interrupts. It is also possible to pass a handle to fwnode when creating the simulator domain and retrieve it using irq_find_matching_fwnode(). The irq_sim_fire() function is dropped as well. Instead we implement the irq_get/set_irqchip_state interface. We modify the two modules that use the simulator at the same time as adding these changes in order to reduce the intermediate bloat that would result when trying to migrate the drivers in separate patches. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> #for IIO Link: https://lore.kernel.org/r/20200514083901.23445-3-brgl@bgdev.pl
Diffstat (limited to 'drivers/irqchip/irq-gic-v3-its.c')
0 files changed, 0 insertions, 0 deletions