public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] irq-sim updates for 4.15
@ 2017-10-05 12:44 Bartosz Golaszewski
  2017-10-05 12:44 ` [PATCH 1/3] irq/irq_sim: explicitly pull in slab.h Bartosz Golaszewski
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Bartosz Golaszewski @ 2017-10-05 12:44 UTC (permalink / raw)
  To: Thomas Gleixner, Marc Zyngier, Jonathan Cameron,
	Lars-Peter Clausen
  Cc: linux-kernel, Bartosz Golaszewski

I initially submitted patch 2/3 as a standalone, but it turned out
during some development for iio that some additional functionalities
would be useful as well.

The first patch pulls in slab.h directly instead of relying on the
include from irq.h.

The second exposes an interface for accessing the base of the
allocated interrupt range.

The third implements a function that allows to map the allocated
interrupt number to the array offset within the irq sim object. This
will be later (4.16) used in iio, where for 4.15 we needed to keep the
irq base value and to calculate the offset manually in the driver.

Bartosz Golaszewski (3):
  irq/irq_sim: explicitly pull in slab.h
  irq/irq_sim: implement irq_sim_baseirq()
  irq/irq_sim: implement irq_sim_irq2offset()

 include/linux/irq_sim.h |  2 ++
 kernel/irq/irq_sim.c    | 27 +++++++++++++++++++++++++++
 2 files changed, 29 insertions(+)

-- 
2.13.2

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-10-18 15:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-05 12:44 [PATCH 0/3] irq-sim updates for 4.15 Bartosz Golaszewski
2017-10-05 12:44 ` [PATCH 1/3] irq/irq_sim: explicitly pull in slab.h Bartosz Golaszewski
2017-10-05 12:44 ` [PATCH 2/3] irq/irq_sim: implement irq_sim_baseirq() Bartosz Golaszewski
2017-10-05 12:44 ` [PATCH 3/3] irq/irq_sim: implement irq_sim_irq2offset() Bartosz Golaszewski
2017-10-18  8:58   ` Marc Zyngier
2017-10-18  9:51     ` Bartosz Golaszewski
2017-10-18 10:13       ` Marc Zyngier
2017-10-18 12:49         ` Bartosz Golaszewski
2017-10-18 15:47           ` Marc Zyngier
2017-10-18  8:34 ` [PATCH 0/3] irq-sim updates for 4.15 Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox