Received: by 10.223.185.111 with SMTP id b44csp916866wrg; Fri, 9 Mar 2018 16:48:32 -0800 (PST) X-Google-Smtp-Source: AG47ELtpv0sOpJSoUHkat6gcZnj6drPVClhDU3j37fSjei0BuqPAtoPHq/CygiEnb+vNWbt9szc3 X-Received: by 10.99.115.21 with SMTP id o21mr328302pgc.226.1520642912445; Fri, 09 Mar 2018 16:48:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520642912; cv=none; d=google.com; s=arc-20160816; b=06MajhqcJpjs0SOQhg3dI20h4eONZv46dLXosCXIuykBdMVdAHYN7eGKjgRNn8DbCv l9STlA1pKICL5iCAcBT32urQJ9Qot1XwXgkRpsFUiuEABGYek8XSGTVlfz9txf7hlYg+ lVwQ/quvUxzala3GDVMQczhEu8YduV36OLDSbrVJ3VWqs8fj5vzncJobwuOlevoxLsq9 mceMfynCoTC5LD4VFzcgTLWMtbxIX4Xcl8mlcQP92VJQ/kGeLBSTldjbeC6698wuHSZm J5y9RImi0qK9RqpJzY3vb+CgTAgHBPYMM6hYc0SpGSXN5RhpdZB5NhQWxhFp/Sa81SMs hvQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=yAOcxD2Jakc+DbzZe3Eb5q8RQ0fNPFjZfxn+F91XD8o=; b=NhtjiMctQNxVLccG9dsbCZ0P9oh7iM1/pLIr7oxp/pW3zYWJriWI6j0dNAamvZcoTE gkjL+zMZ8+mBPvhisMFtGvYqt6Yg667zIrGHo2GK2OmVYULZPbBqPdEP/EB6Yk48/FNd Tkw+I1nE0OPHsdvM7+O3jGQNyQFclW8G71e7lwOQEz+Qq0Fv+D2Cf751QOXzbv/Rg+Ka dlP33C0DV7d42a2B94TGWrcEbl7EcLy/nmtqaFgzdUCg+WTTJ3rgRW8S/kTvEEpi+4u2 oHiFsKx4kmcTzq0gB9j7gR4BSg6djlkPY1LZ/jpKB4u22aA2G6dGk4Udh3KDYG5ouPWx J0gw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o6-v6si1719072pls.583.2018.03.09.16.48.18; Fri, 09 Mar 2018 16:48:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933203AbeCJAT5 (ORCPT + 99 others); Fri, 9 Mar 2018 19:19:57 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:38906 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933141AbeCJATy (ORCPT ); Fri, 9 Mar 2018 19:19:54 -0500 Received: from localhost (unknown [185.236.200.248]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 94BAAFB1; Sat, 10 Mar 2018 00:19:53 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jacek Anaszewski , Matthieu CASTET , Ben Hutchings Subject: [PATCH 4.4 17/36] Revert "led: core: Fix brightness setting when setting delay_off=0" Date: Fri, 9 Mar 2018 16:18:33 -0800 Message-Id: <20180310001808.277179453@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180310001807.213987241@linuxfoundation.org> References: <20180310001807.213987241@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ben Hutchings This reverts commit 20ac8f72514b3af8b62c520d55656ded865eff00, 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 Cc: Matthieu CASTET Signed-off-by: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- 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 @@ -149,7 +149,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;