Re: [PATCH AUTOSEL 5.4 034/134] leds: trigger: netdev: fix handling on interface rename

From: Sasha Levin
Date: Sat Dec 14 2019 - 13:11:42 EST


On Sat, Dec 14, 2019 at 09:43:31AM +0100, Pavel Machek wrote:
On Wed 2019-12-11 10:10:10, Sasha Levin wrote:
From: Martin Schiller <ms@xxxxxxxxxx>

[ Upstream commit 5f820ed52371b4f5d8c43c93f03408d0dbc01e5b ]

The NETDEV_CHANGENAME code is not "unneeded" like it is stated in commit
4cb6560514fa ("leds: trigger: netdev: fix refcnt leak on interface
rename").

The event was accidentally misinterpreted equivalent to
NETDEV_UNREGISTER, but should be equivalent to NETDEV_REGISTER.

This was the case in the original code from the openwrt project.

Otherwise, you are unable to set netdev led triggers for (non-existent)
netdevices, which has to be renamed. This is the case, for example, for
ppp interfaces in openwrt.

Please drop.

Here's a bug report from a user (fixed by this patch):

https://forum.openwrt.org/t/18-06-4-serious-led-problems-td-w8970-v1/40417

He has titled the report "18.06.4:Serious âLEDâ Problems!", and in the
bug report itself he has mentioned:

The LED's are really important to me. please let me know how to
fix this by my self! I cannot report it and wait for next few
months for patch, again!

There are two other similar bug reports:

https://bugs.openwrt.org/index.php?do=details&task_id=2193
https://bugs.openwrt.org/index.php?do=details&task_id=2239

So this is obviously an issue that affects users and needs to be fixed.

Beyond the above, the patch is upstream, it fixes a single issue, and is
shorter than 100 lines.

I'm going to go ahead and ignore your input for this and the rest of the
led patches in the series for similar reasons.

--
Thanks,
Sasha