[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180406084226.975987221@linuxfoundation.org>
Date: Fri, 6 Apr 2018 15:23:16 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org,
Jacek Anaszewski <jacek.anaszewski@...il.com>,
Matthieu CASTET <matthieu.castet@...rot.com>,
Ben Hutchings <ben.hutchings@...ethink.co.uk>,
Wang Han <wanghan1995315@...il.com>
Subject: [PATCH 3.18 47/93] Revert "led: core: Fix brightness setting when setting delay_off=0"
3.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ben Hutchings <ben.hutchings@...ethink.co.uk>
This reverts commit 20f6d9c2af33da892a0e03ffd6249c7ab81edfb7, which
was commit 2b83ff96f51d0b039c4561b9f95c824d7bddb85c upstream.
The bug that it should fix was only introduced in Linux 4.7, and
in 4.4 it causes a regression.
Reported-by: Jacek Anaszewski <jacek.anaszewski@...il.com>
Cc: Matthieu CASTET <matthieu.castet@...rot.com>
Signed-off-by: Ben Hutchings <ben.hutchings@...ethink.co.uk>
Cc: Wang Han <wanghan1995315@...il.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
drivers/leds/led-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/leds/led-core.c
+++ b/drivers/leds/led-core.c
@@ -76,7 +76,7 @@ void led_blink_set(struct led_classdev *
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;
Powered by blists - more mailing lists