[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190812125256.9690-1-brgl@bgdev.pl>
Date: Mon, 12 Aug 2019 14:52:54 +0200
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Linus Walleij <linus.walleij@...aro.org>,
Jonathan Cameron <jic23@...nel.org>,
Hartmut Knaack <knaack.h@....de>,
Lars-Peter Clausen <lars@...afoo.de>,
Peter Meerwald-Stadler <pmeerw@...erw.net>,
Thomas Gleixner <tglx@...utronix.de>,
Marc Zyngier <maz@...nel.org>
Cc: linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-iio@...r.kernel.org,
Bartosz Golaszewski <bgolaszewski@...libre.com>
Subject: [PATCH 0/2] irq/irq_sim: try to improve the API
From: Bartosz Golaszewski <bgolaszewski@...libre.com>
Currently the interrupt simulator exposes structures that don't need
to be public and has a helper that manually maps the simulator's irq
offsets to the global interrupt numberspace - something that should
be preferably handles by an irq_domain.
The first patch addresses the public structures: it moves them into
the relevant .c file and makes the init function return an opaque
pointer.
The second patch adds a linear irq_domain to the simulator and removes
the irq_sim_irqnum() routine. Users should now use the standard
irq_domain functions.
Both users of the irq_sim are converted at the same time as it's much
easier than trying to transition them step by step.
Tested both the gpio-mockup module as well as the iio_dummy_evgen.
Bartosz Golaszewski (2):
irq/irq_sim: make the irq_sim structure opaque
irq/irq_sim: use irq domain
drivers/gpio/gpio-mockup.c | 21 ++--
drivers/iio/dummy/iio_dummy_evgen.c | 34 +++---
include/linux/irq_sim.h | 29 ++---
kernel/irq/Kconfig | 1 +
kernel/irq/irq_sim.c | 177 ++++++++++++++++++----------
5 files changed, 152 insertions(+), 110 deletions(-)
--
2.21.0
Powered by blists - more mailing lists