Skip to content

gpio: sim: lock simulated GPIOs as interrupts

Bartosz Golaszewski linux-gpio lkml 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 5 repliesApplied
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- drop the notifier in favor of specific callbacks

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2genirq/irq_sim: add an extended irq_sim initializerinclude/linux/irq_sim.h kernel/irq/irq_sim.c+74 -31 reply
2/2gpio: sim: lock GPIOs as interrupts when they are requesteddrivers/gpio/gpio-sim.c+24 -11 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLinus Walleij
SeriesA-b
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] gpio: sim: lock simulated GPIOs as interrupts

From: Bartosz Golaszewski <[email protected]>

I realized that the gpio-sim module doesn't lock the GPIOs as interrupts when they are requested from the irq_sim. This leads to users being able to change the direction of GPIOs that should remain as inputs to output. This series extends the irq_sim interface and allows users to supply callbacks that will be executed to inform users about interrupts being requested and released so that they can act accordingly. The gpio-sim is made to use this new API and lock GPIOs as interrupts when needed.

Thomas: if this is fine with you, can you Ack it so that I can take it through the GPIO tree for the next merge window?

Changes since v1:
- drop the notifier in favor of specific callbacks

Bartosz Golaszewski (2):
genirq/irq_sim: add an extended irq_sim initializer
gpio: sim: lock GPIOs as interrupts when they are requested

 drivers/gpio/gpio-sim.c | 25 ++++++++++++++++-
 include/linux/irq_sim.h | 17 ++++++++++++
 kernel/irq/irq_sim.c    | 60 ++++++++++++++++++++++++++++++++++++++---
 3 files changed, 98 insertions(+), 4 deletions(-)
Signature · 1 line
2.43.0