linux/drivers/leds/trigger
Christian Marangi 86b93cbfe1 leds: trigger: netdev: Recheck NETDEV_LED_MODE_LINKUP on dev rename
commit cee4bd16c3 upstream.

Dev can be renamed also while up for supported device. We currently
wrongly clear the NETDEV_LED_MODE_LINKUP flag on NETDEV_CHANGENAME
event.

Fix this by rechecking if the carrier is ok on NETDEV_CHANGENAME and
correctly set the NETDEV_LED_MODE_LINKUP bit.

Fixes: 5f820ed523 ("leds: trigger: netdev: fix handling on interface rename")
Cc: stable@vger.kernel.org # v5.5+
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230419210743.3594-2-ansuelsmth@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-07-23 13:47:36 +02:00
..
Kconfig leds: trigger: remove reference to obsolete CONFIG_IDE_GD_ATA 2021-08-18 08:59:47 +02:00
ledtrig-activity.c kernel.h: split out panic and oops helpers 2021-07-01 11:06:04 -07:00
ledtrig-audio.c leds: trigger: audio: Add an activate callback to ensure the initial brightness is set 2021-08-03 23:57:17 +02:00
ledtrig-backlight.c
ledtrig-camera.c
ledtrig-cpu.c leds: trigger: ledtrig-cpu: Fix incorrectly documented param 'ledevt' 2021-05-28 11:38:53 +02:00
ledtrig-default-on.c
ledtrig-disk.c
ledtrig-gpio.c
ledtrig-heartbeat.c kernel.h: split out panic and oops helpers 2021-07-01 11:06:04 -07:00
ledtrig-mtd.c
ledtrig-netdev.c leds: trigger: netdev: Recheck NETDEV_LED_MODE_LINKUP on dev rename 2023-07-23 13:47:36 +02:00
ledtrig-oneshot.c
ledtrig-panic.c kernel.h: split out panic and oops helpers 2021-07-01 11:06:04 -07:00
ledtrig-pattern.c leds: trigger: pattern: Switch to using the new API kobj_to_dev() 2021-04-25 23:38:10 +02:00
ledtrig-timer.c
ledtrig-transient.c
ledtrig-tty.c leds: trigger/tty: Use led_set_brightness_sync() from workqueue 2021-03-10 09:27:56 +01:00
Makefile leds: trigger: implement a tty trigger 2021-01-15 10:22:26 +01:00