Message ID | 20230307170046.28917-10-ansuelsmth@gmail.com |
---|---|
State | Superseded |
Headers | show |
Series | net: Add basic LED support for switch/phy | expand |
On 07/03/2023 18:00, Christian Marangi wrote: > Add LEDs definition example for qca8k Switch Family to describe how they > should be defined for a correct usage. > > Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Where is the changelog? This was v8 already! What happened with all review, changes? Best regards, Krzysztof
On Wed, Mar 08, 2023 at 11:58:33AM +0100, Krzysztof Kozlowski wrote: > On 07/03/2023 18:00, Christian Marangi wrote: > > Add LEDs definition example for qca8k Switch Family to describe how they > > should be defined for a correct usage. > > > > Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> > > Where is the changelog? This was v8 already! What happened with all > review, changes? Did you read patch 0? We have decided to start again, starting small and working up. This patchset just adds plain, boring LEDs. No acceleration, on hardware offload. Just on/off, and fixed blink. What do you think makes the patchset is not bisectable? We are happy to address such issues, but i did not notice anything. Andrew
On 08/03/2023 14:57, Andrew Lunn wrote: > On Wed, Mar 08, 2023 at 11:58:33AM +0100, Krzysztof Kozlowski wrote: >> On 07/03/2023 18:00, Christian Marangi wrote: >>> Add LEDs definition example for qca8k Switch Family to describe how they >>> should be defined for a correct usage. >>> >>> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> >> >> Where is the changelog? This was v8 already! What happened with all >> review, changes? > > Did you read patch 0? > > We have decided to start again, starting small and working up. This > patchset just adds plain, boring LEDs. No acceleration, on hardware > offload. Just on/off, and fixed blink. Sure, but the patch is carried over. So what happened with all its feedback? Was there or was not? How can we know? > > What do you think makes the patchset is not bisectable? We are happy > to address such issues, but i did not notice anything. I didn't write anything like that here... Best regards, Krzysztof
On Wed, Mar 08, 2023 at 07:49:26PM +0100, Krzysztof Kozlowski wrote: > On 08/03/2023 14:57, Andrew Lunn wrote: > > On Wed, Mar 08, 2023 at 11:58:33AM +0100, Krzysztof Kozlowski wrote: > >> On 07/03/2023 18:00, Christian Marangi wrote: > >>> Add LEDs definition example for qca8k Switch Family to describe how they > >>> should be defined for a correct usage. > >>> > >>> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> > >> > >> Where is the changelog? This was v8 already! What happened with all > >> review, changes? > > > > Did you read patch 0? > > > > We have decided to start again, starting small and working up. This > > patchset just adds plain, boring LEDs. No acceleration, on hardware > > offload. Just on/off, and fixed blink. > > Sure, but the patch is carried over. So what happened with all its > feedback? Was there or was not? How can we know? > The history of the old series is a bit sad, not enough review, another dev asking for a different implementation and me doing an hybrid to reach a common point (and then disappear intro oblivion)... Short story is that this current series have nothing related to the HW offload feature and only in v7 it was asked to put the LED nodes in ethernet-phy.yaml I can put in the cover letter of v2 of this series the changelog of the previous series but they would only be related to other part that are not related to this. Just to give you some context and explain why the changelog was dropped. > > > > What do you think makes the patchset is not bisectable? We are happy > > to address such issues, but i did not notice anything. > > I didn't write anything like that here... >
On 08/03/2023 20:02, Christian Marangi wrote: > On Wed, Mar 08, 2023 at 07:49:26PM +0100, Krzysztof Kozlowski wrote: >> On 08/03/2023 14:57, Andrew Lunn wrote: >>> On Wed, Mar 08, 2023 at 11:58:33AM +0100, Krzysztof Kozlowski wrote: >>>> On 07/03/2023 18:00, Christian Marangi wrote: >>>>> Add LEDs definition example for qca8k Switch Family to describe how they >>>>> should be defined for a correct usage. >>>>> >>>>> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> >>>> >>>> Where is the changelog? This was v8 already! What happened with all >>>> review, changes? >>> >>> Did you read patch 0? >>> >>> We have decided to start again, starting small and working up. This >>> patchset just adds plain, boring LEDs. No acceleration, on hardware >>> offload. Just on/off, and fixed blink. >> >> Sure, but the patch is carried over. So what happened with all its >> feedback? Was there or was not? How can we know? >> > > The history of the old series is a bit sad, not enough review, another > dev asking for a different implementation and me doing an hybrid to > reach a common point (and then disappear intro oblivion)... > > Short story is that this current series have nothing related to the HW > offload feature and only in v7 it was asked to put the LED nodes in > ethernet-phy.yaml > > I can put in the cover letter of v2 of this series the changelog of the > previous series but they would only be related to other part that are > not related to this. > > Just to give you some context and explain why the changelog was dropped. I am less interested in the changelog of entire patchset but of the patches which are for me to review. Sending vX as v1 suggests that all previous review work on this patch could be in some limbo state. Maybe nothing happened in all previous version, but it's now my task to dig it? This is why you have "---" for the patch changelog. Best regards, Krzysztof
On Wed, Mar 08, 2023 at 08:09:34PM +0100, Krzysztof Kozlowski wrote: > On 08/03/2023 20:02, Christian Marangi wrote: > > On Wed, Mar 08, 2023 at 07:49:26PM +0100, Krzysztof Kozlowski wrote: > >> On 08/03/2023 14:57, Andrew Lunn wrote: > >>> On Wed, Mar 08, 2023 at 11:58:33AM +0100, Krzysztof Kozlowski wrote: > >>>> On 07/03/2023 18:00, Christian Marangi wrote: > >>>>> Add LEDs definition example for qca8k Switch Family to describe how they > >>>>> should be defined for a correct usage. > >>>>> > >>>>> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> > >>>> > >>>> Where is the changelog? This was v8 already! What happened with all > >>>> review, changes? > >>> > >>> Did you read patch 0? > >>> > >>> We have decided to start again, starting small and working up. This > >>> patchset just adds plain, boring LEDs. No acceleration, on hardware > >>> offload. Just on/off, and fixed blink. > >> > >> Sure, but the patch is carried over. So what happened with all its > >> feedback? Was there or was not? How can we know? > >> > > > > The history of the old series is a bit sad, not enough review, another > > dev asking for a different implementation and me doing an hybrid to > > reach a common point (and then disappear intro oblivion)... > > > > Short story is that this current series have nothing related to the HW > > offload feature and only in v7 it was asked to put the LED nodes in > > ethernet-phy.yaml > > > > I can put in the cover letter of v2 of this series the changelog of the > > previous series but they would only be related to other part that are > > not related to this. > > > > Just to give you some context and explain why the changelog was dropped. > > I am less interested in the changelog of entire patchset but of the > patches which are for me to review. Sending vX as v1 suggests that all > previous review work on this patch could be in some limbo state. Maybe > nothing happened in all previous version, but it's now my task to dig it? > OK, if you are intrested only on the DT changes I can list:
> Then we decided to "reboot" the series and: > In v1: > - The default-trigger is dropped (will be introduced later when the work > for the netdev trigger will be done) > - We use the default state to "keep" There is one more change. The leds {} property moved from the PHY nodes into the port nodes, because these are MAC LEDs, not PHY LEDs. Andrew
diff --git a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml index 389892592aac..866b3cc73216 100644 --- a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml @@ -18,6 +18,8 @@ description: PHY it is connected to. In this config, an internal mdio-bus is registered and the MDIO master is used for communication. Mixed external and internal mdio-bus configurations are not supported by the hardware. + Each phy have at least 3 LEDs connected and can be declared + using the standard LEDs structure. properties: compatible: @@ -117,6 +119,7 @@ unevaluatedProperties: false examples: - | #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/leds/common.h> mdio { #address-cells = <1>; @@ -226,6 +229,27 @@ examples: label = "lan1"; phy-mode = "internal"; phy-handle = <&internal_phy_port1>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = <LED_COLOR_ID_WHITE>; + function = LED_FUNCTION_LAN; + function-enumerator = <1>; + default-state = "keep"; + }; + + led@1 { + reg = <1>; + color = <LED_COLOR_ID_AMBER>; + function = LED_FUNCTION_LAN; + function-enumerator = <1>; + default-state = "keep"; + }; + }; }; port@2 {
Add LEDs definition example for qca8k Switch Family to describe how they should be defined for a correct usage. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> --- .../devicetree/bindings/net/dsa/qca8k.yaml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+)