Skip to content

leds: netdev trigger: allow setting initial values in device tree

Rasmus Villemoes linux-can linux-devicetree linux-leds lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 14 repliesIn review
  2. v14 patches 19 repliesSuperseded

Changes in v2 from the cover letter

* use 0 instead of '\0' for consistency with existing code [Pavel]
* name the helper netdev_trig_set_device [Uwe]
* add a patch allowing echoing 15-character names to device_name
* ensure the length checking is done in one place [Uwe]
* drop hunk from CAN Kconfig file for now [Uwe]
* don't mention CONFIG_CAN_LEDS in device tree binding [Uwe]
* guard netdev_trig_of_init by LED_INIT_DEFAULT_TRIGGER bit [Jacek]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6leds: netdev trigger: use memcpy in device_name_storedrivers/leds/trigger/ledtrig-netdev.c+2 -16 replies
2/6leds: netdev trigger: factor out middle part of device_name_storedrivers/leds/trigger/ledtrig-netdev.c+18 -121 reply
3/6leds: netdev trigger: move newline handling back to device_name_storedrivers/leds/trigger/ledtrig-netdev.c+5 -31 reply
4/6leds: netdev trigger: move name length checking to netdev_trig_set_devicedrivers/leds/trigger/ledtrig-netdev.c+9 -61 reply
5/6leds: netdev trigger: add documentation to leds/common.txtDocumentation/devicetree/bindings/leds/common.txt+3 -00 replies
6/6leds: netdev trigger: allow setting initial values in device treeDocumentation/devicetree/bindings/leds/common.txt drivers/leds/trigger/ledtrig-netdev.c+41 -05 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchPavel Machek
1/6A-b
2/6
3/6A-b
4/6A-b
5/6
6/6

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/6] leds: netdev trigger: allow setting initial values in device tree

Here's a reroll of the attempt to allow initializing led_netdev_data from DT, fixing minor bugs and inconsistensies I found while digging into the code.

Changes in v2:

* use 0 instead of '\0' for consistency with existing code [Pavel]
* name the helper netdev_trig_set_device [Uwe]
* add a patch allowing echoing 15-character names to device_name
* ensure the length checking is done in one place [Uwe]
* drop hunk from CAN Kconfig file for now [Uwe]
* don't mention CONFIG_CAN_LEDS in device tree binding [Uwe]
* guard netdev_trig_of_init by LED_INIT_DEFAULT_TRIGGER bit [Jacek]

Rasmus Villemoes (6):
leds: netdev trigger: use memcpy in device_name_store
leds: netdev trigger: factor out middle part of device_name_store
leds: netdev trigger: move newline handling back to device_name_store
leds: netdev trigger: move name length checking to
netdev_trig_set_device
leds: netdev trigger: add documentation to leds/common.txt
leds: netdev trigger: allow setting initial values in device tree

 .../devicetree/bindings/leds/common.txt       | 14 ++++
 drivers/leds/trigger/ledtrig-netdev.c         | 68 +++++++++++++++----
 2 files changed, 69 insertions(+), 13 deletions(-)
Signature · 1 line
2.20.1