diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-03-08 22:23:57 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-03-08 22:23:57 +0100 |
commit | 9bdea6a2964b9983d312b302e0fdde98c6bdc53b (patch) | |
tree | f88c56dc6427fe3f2922e5b4596f4dde6e8d799e | |
parent | 9b0a4bafbce7db0133cb69a2f73c9312f4ff1df7 (diff) | |
download | upstream-9bdea6a2964b9983d312b302e0fdde98c6bdc53b.tar.gz upstream-9bdea6a2964b9983d312b302e0fdde98c6bdc53b.tar.bz2 upstream-9bdea6a2964b9983d312b302e0fdde98c6bdc53b.zip |
generic: revert broken LED core patch
At least on some devices, LEDs don't work anymore since kernel 4.4.120.
Revert the broken change.
See also: https://www.spinics.net/lists/stable/msg223656.html
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
-rw-r--r-- | target/linux/generic/patches-4.4/087-Revert-led-core-Fix-brightness-setting-when-setting-.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/generic/patches-4.4/087-Revert-led-core-Fix-brightness-setting-when-setting-.patch b/target/linux/generic/patches-4.4/087-Revert-led-core-Fix-brightness-setting-when-setting-.patch new file mode 100644 index 0000000000..6378ed4351 --- /dev/null +++ b/target/linux/generic/patches-4.4/087-Revert-led-core-Fix-brightness-setting-when-setting-.patch @@ -0,0 +1,28 @@ +From 4b98deaa353d8f7af3f7543d0b59497fe1275599 Mon Sep 17 00:00:00 2001 +Message-Id: <4b98deaa353d8f7af3f7543d0b59497fe1275599.1520544136.git.mschiffer@universe-factory.net> +From: Matthias Schiffer <mschiffer@universe-factory.net> +Date: Thu, 8 Mar 2018 22:22:08 +0100 +Subject: [PATCH] Revert "led: core: Fix brightness setting when setting + delay_off=0" + +This reverts commit 20ac8f72514b3af8b62c520d55656ded865eff00. +--- + drivers/leds/led-core.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/leds/led-core.c b/drivers/leds/led-core.c +index 92b6798ef5b3..c1c3af089634 100644 +--- a/drivers/leds/led-core.c ++++ b/drivers/leds/led-core.c +@@ -149,7 +149,7 @@ void led_blink_set(struct led_classdev *led_cdev, + unsigned long *delay_on, + unsigned long *delay_off) + { +- led_stop_software_blink(led_cdev); ++ del_timer_sync(&led_cdev->blink_timer); + + led_cdev->flags &= ~LED_BLINK_ONESHOT; + led_cdev->flags &= ~LED_BLINK_ONESHOT_STOP; +-- +2.16.2 + |