Skip to content

irq-sim updates for 4.15

Bartosz Golaszewski lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3irq/irq_sim: explicitly pull in slab.hkernel/irq/irq_sim.c+1 -00 replies
2/3irq/irq_sim: implement irq_sim_baseirq()include/linux/irq_sim.h kernel/irq/irq_sim.c+12 -00 replies
3/3irq/irq_sim: implement irq_sim_irq2offset()include/linux/irq_sim.h kernel/irq/irq_sim.c+16 -05 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] irq-sim updates for 4.15

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(+)
Signature · 1 line
2.13.2