Skip to content

leds: gpio: Add devlink between the leds-gpio device and the gpio used.

Herve Codina linux-gpio linux-leds lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/22 patches 7 repliesIn review
  2. v1 posting 1/22 patches 5 repliesSuperseded

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2gpiolib: Introduce gpiod_device_add_link()drivers/gpio/gpiolib.c include/linux/gpio/consumer.h+37 -00 replies
2/2leds: gpio: Add devlinks between the gpio consumed and the gpio leds devicedrivers/leds/leds-gpio.c+15 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH RESEND 0/2] leds: gpio: Add devlink between the leds-gpio device and the gpio used.

Hi,

Note: Resent this series with Saravana added in Cc.

When a gpio used by the leds-gpio device is removed, the leds-gpio device continues to use this gpio. Also, when the gpio is back, the leds-gpio still uses the old removed gpio.

A consumer/supplier relationship is missing between the leds-gpio device (consumer) and the gpio used (supplier).

This series adds an addionnal devlink between this two device. With this link when the gpio is removed, the leds-gpio device is also removed.

Best regards,
Hervé Codina

Herve Codina (2):
gpiolib: Introduce gpiod_device_add_link()
leds: gpio: Add devlinks between the gpio consumed and the gpio leds
device

 drivers/gpio/gpiolib.c        | 32 ++++++++++++++++++++++++++++++++
 drivers/leds/leds-gpio.c      | 15 +++++++++++++++
 include/linux/gpio/consumer.h |  5 +++++
 3 files changed, 52 insertions(+)
Signature · 1 line
2.43.0