summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-pca955x.c
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-04-19 23:07:39 +0200
committerLee Jones <lee@kernel.org>2023-05-25 13:07:34 +0200
commitcee4bd16c3195a701be683f7da9e88c6e11acb73 (patch)
tree4a366d139bf96c1e6d77d3a91b994112157f499d /drivers/leds/leds-pca955x.c
parentLinux 6.4-rc1 (diff)
downloadlinux-cee4bd16c3195a701be683f7da9e88c6e11acb73.tar.xz
linux-cee4bd16c3195a701be683f7da9e88c6e11acb73.zip
leds: trigger: netdev: Recheck NETDEV_LED_MODE_LINKUP on dev rename
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: 5f820ed52371 ("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
Diffstat (limited to 'drivers/leds/leds-pca955x.c')
0 files changed, 0 insertions, 0 deletions