Received: by 10.223.185.116 with SMTP id b49csp8732414wrg; Fri, 2 Mar 2018 07:03:50 -0800 (PST) X-Google-Smtp-Source: AG47ELsAH4AVMJjDmd67iCEPYEXwA7oRODK8vWnuPZjNTc3Ltdq8xgOMb+VKNmj2x+BdkFd/jg5h X-Received: by 10.101.101.5 with SMTP id x5mr4719998pgv.195.1520003030851; Fri, 02 Mar 2018 07:03:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520003030; cv=none; d=google.com; s=arc-20160816; b=EykkWvjsnXXUpEVPJS9GQrP2aGWUPflnhx3wawHOR3/jev7HjWImjzxwNXyeNj7wca dInClp8LkmtVPCfkFADipYPwdy+y8S7Le5CCE44WPOn+PdqZiOsAvBTOFYiMtkqGYcnJ wzhsA+Bj7ksVOWQiu+H2cttifigdKFYjkzwQcpecT6qhdPKV4wTMeunZDiLTC0wbeC9/ KCo9pZ2kDOu38z4z68jEegHNb407ajhdRgca1/L32Et9oUFk+/0qZcnUik7mDc8y3JHX uZ1fjbKTaPCLlyPoRVCFc54j00Dw8htNU16NfRLrGBsxe4HRq35YjXP5CcCQ5fA9caJk MZNw== 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=eDSQnixTR0fcoLqAFIXWt1ESg9wE+zQmJcnc4lQl/lU=; b=DvKviKW/ERshAdrzSeparUOZxQOz2tqlnhCsIdtirBG0QugvMJxAR0P3sN5vdSbvwf 4zPRZUHe9llbUifd1EelltolffHZwu+Rcho9tw47R0GxkSl46FuAFkr9WLHekKEXYYJo C4vTIjaPq6TpPvW4soKvVzzanqJtU9MiVFBoo9Ux6YpOTsqBQe+qO73T0UhlR1newPOS BUWBzywS3OoXHh/0dpIzNrFkmGNbq1wQZxq4wdQYMtSiQlx3XVmN4B93KqE+r0xVFpS1 bxSFXhaLjeNJU918UdH2YQHCbzJMib2lRTuq29FuEK11ioJaReVfa3P9ffJRBOUT6+mm ApOw== 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 n11-v6si4782049plp.449.2018.03.02.07.03.35; Fri, 02 Mar 2018 07:03:50 -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 S1426934AbeCBLJ4 (ORCPT + 99 others); Fri, 2 Mar 2018 06:09:56 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:50452 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423465AbeCBIy1 (ORCPT ); Fri, 2 Mar 2018 03:54:27 -0500 Received: from localhost (clnet-b04-243.ikbnet.co.at [83.175.124.243]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 5A7E5110C; Fri, 2 Mar 2018 08:54:26 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org Subject: [PATCH 4.4 16/34] led: core: Fix brightness setting when setting delay_off=0 Date: Fri, 2 Mar 2018 09:51:12 +0100 Message-Id: <20180302084437.007951262@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180302084435.842679610@linuxfoundation.org> References: <20180302084435.842679610@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: Matthieu CASTET [ Upstream commit 2b83ff96f51d0b039c4561b9f95c824d7bddb85c ] With the current code, the following sequence won't work : echo timer > trigger echo 0 > delay_off * at this point we call ** led_delay_off_store ** led_blink_set --- 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) { - del_timer_sync(&led_cdev->blink_timer); + led_stop_software_blink(led_cdev); led_cdev->flags &= ~LED_BLINK_ONESHOT; led_cdev->flags &= ~LED_BLINK_ONESHOT_STOP;