Skip to content

net: dsa: motorcomm: Add LED support

David Yang linux-devicetree lkml netdev 12 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v12 Latest5 patches 1 replyIn review 4 of 5 applied
  2. v115 patches 5 repliesApplied 5/5
  3. v104 patches 7 repliesSuperseded
Earlier versions · 9
VersionPostedPatchesRepliesStatus
v93 patches3 repliesSuperseded
v83 patches0 repliesSuperseded
v73 patches0 repliesSuperseded
v63 patches4 repliesSuperseded
v53 patches0 repliesSuperseded
v43 patches1 replySuperseded
v33 patches1 replySuperseded
v24 patches4 repliesSuperseded
v1 RFC4 patches5 repliesSuperseded

Patches in v12 4 of 5 applied

#Subject and filesSizeRepliesApplied
1/5net: dsa: yt921x: Check lock status with lockdep_assert_held_once()drivers/net/dsa/yt921x.c+2 -20 repliesApplied
2/5net: dsa: motorcomm: Move to subdirectoryMAINTAINERS drivers/net/dsa/Kconfig drivers/net/dsa/Makefile +4 more+16 -110 repliesApplied
3/5net: dsa: motorcomm: Split SMI moduledrivers/net/dsa/motorcomm/Makefile drivers/net/dsa/motorcomm/chip.c drivers/net/dsa/motorcomm/smi.c +1 more+243 -2060 repliesApplied
4/5net: dsa: motorcomm: Add LED supportdrivers/net/dsa/motorcomm/Kconfig drivers/net/dsa/motorcomm/Makefile drivers/net/dsa/motorcomm/chip.c +3 more+826 -20 replies
5/5dt-bindings: net: dsa: yt921x: Add LEDs definition exampleDocumentation/devicetree/bindings/net/dsa/motorcomm,yt921x.yaml+23 -00 repliesApplied

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchAndrew LunnKrzysztof Kozlowski
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

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

Read the v12 thread

Cover letter [PATCH net-next v12 0/5] net: dsa: motorcomm: Add LED support

LEDs can be described in the device tree using the standard LED node notation. Currently, only parallel mode and strict 1:1 mapping (i.e. the HW default) are supported.

v11: https://lore.kernel.org/r/[email protected]
- handle one of *delay_on / *delay_off is zero
- fix error path for yt921x_led_setup()
v10: https://lore.kernel.org/r/[email protected]
- new patch to fix lock status check
- LED control block redesigned
v9: https://lore.kernel.org/r/[email protected]
- LED initialization sequence adjusted
- add DT description
v8: https://lore.kernel.org/r/[email protected]
- limit the led port number
v7: https://lore.kernel.org/r/[email protected]
- rebase
v6: https://lore.kernel.org/r/[email protected]
- per-port initialization support
v5: https://lore.kernel.org/r/[email protected]
- improve trigger selection
v4: https://lore.kernel.org/r/[email protected]
- fix some reg op typos
v3: https://lore.kernel.org/r/[email protected]
- fix null pointer dereference
- support polarity auto-configuration
v2: https://lore.kernel.org/r/[email protected]
- allocate LED structures only
- eliminate double locking
v1: https://lore.kernel.org/r/[email protected]
- set up polarity correctly
- do not set up .brightness_get() to prevent dead lo

David Yang (5):
net: dsa: yt921x: Check lock status with lockdep_assert_held_once()
net: dsa: motorcomm: Move to subdirectory
net: dsa: motorcomm: Split SMI module
net: dsa: motorcomm: Add LED support
dt-bindings: net: dsa: yt921x: Add LEDs definition example

 .../bindings/net/dsa/motorcomm,yt921x.yaml    |  23 +
 MAINTAINERS                                   |   2 +-
 drivers/net/dsa/Kconfig                       |  10 +-
 drivers/net/dsa/Makefile                      |   2 +-
 drivers/net/dsa/motorcomm/Kconfig             |  17 +
 drivers/net/dsa/motorcomm/Makefile            |   5 +
 .../net/dsa/{yt921x.c => motorcomm/chip.c}    | 228 +-----
 .../net/dsa/{yt921x.h => motorcomm/chip.h}    |  15 +
 drivers/net/dsa/motorcomm/leds.c              | 666 ++++++++++++++++++
 drivers/net/dsa/motorcomm/leds.h              | 118 ++++
 drivers/net/dsa/motorcomm/smi.c               | 180 +++++
 drivers/net/dsa/motorcomm/smi.h               |  61 ++
 12 files changed, 1108 insertions(+), 219 deletions(-)
 create mode 100644 drivers/net/dsa/motorcomm/Kconfig
 create mode 100644 drivers/net/dsa/motorcomm/Makefile
 rename drivers/net/dsa/{yt921x.c => motorcomm/chip.c} (96%)
 rename drivers/net/dsa/{yt921x.h => motorcomm/chip.h} (99%)
 create mode 100644 drivers/net/dsa/motorcomm/leds.c
 create mode 100644 drivers/net/dsa/motorcomm/leds.h
 create mode 100644 drivers/net/dsa/motorcomm/smi.c
 create mode 100644 drivers/net/dsa/motorcomm/smi.h
Signature · 1 line
2.53.0