Received: by 10.223.176.5 with SMTP id f5csp1318416wra; Sun, 4 Feb 2018 01:06:26 -0800 (PST) X-Google-Smtp-Source: AH8x224y6o0GIJr6I65HvXcPCh13x+PAhro0xBE9Ye7A29jY8M3WXJiDgrUBlMB3qfh6+oNP598A X-Received: by 10.98.206.65 with SMTP id y62mr1265224pfg.79.1517735186427; Sun, 04 Feb 2018 01:06:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517735186; cv=none; d=google.com; s=arc-20160816; b=czhs1bFAxrxYthMS6ecLr5Lh1Ft/jD+0iSn0mbrdWot9GMwtvtOnPrPkcDRUlKaIeV 7JfUbrUwQsXP+QwFxij1yESzAasSRhZ9AhWAFiD5Nynnn4WAcuWs8NYftu2f/65V9q/m CScFn06ZjGlZUDJ1m9vueU1gHR6Ckm2UgZSVtDZMaoxV+8lhG4XvNBGZ54zj6h34xr4r +SzCaElbDKpz0J6pF3tFXZ7ZHwr3ZM1g/n9NmQVGA+ybTK9WtyXuBbw5LRLp1RhnfbAg suu4afaGxG5w23QcpkDdnPtAtODbIU6F8qjEVBY5dGQ0cdpUXu1HcS5zzmpBUiaIakyO 19Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=m6e7MLBxef3duup+8V6+MBiLBXb1Gq6ribgG5PLNH+E=; b=dO/EIBHarcD1LE+6RCKCvCky6LdL1wOawr3t6xB8OqtSwe1NvAzNiEBX/O3BYiGJjD +1xbfCgVxqrscf18wGAswbMejjiL32bWxkaK+y6GkfXYaLSf1MN/6x3Exb8FU6fwWScq jjfA2syqEgE/xLNF4naQyYjAH/v1zSL8Yuh68akoepC+IfQzaVREp2Wli6sFhEmXZABK re1XMMQTwEl0AUX3iN2uyVSlgfNIYiCGZsuy1jizaHdl8gcLrDOTE4QKO3SPlzOwmYDc J19JdMvgdWtAX0q7bFXg9MOwFd2pLx9wgyW5SMxJeWWE45553BMHySNqJh6p35XxCGZ5 dcoQ== 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 f35-v6si5092034plh.424.2018.02.04.01.06.12; Sun, 04 Feb 2018 01:06:26 -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 S1751720AbeBDJFo (ORCPT + 99 others); Sun, 4 Feb 2018 04:05:44 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:47078 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750818AbeBDJFd (ORCPT ); Sun, 4 Feb 2018 04:05:33 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 196C48018C; Sun, 4 Feb 2018 10:05:32 +0100 (CET) Date: Sun, 4 Feb 2018 10:05:31 +0100 From: Pavel Machek To: Sasha Levin Cc: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Matthieu CASTET , "linux-leds@vger.kernel.org" , Jacek Anaszewski Subject: Re: [PATCH AUTOSEL for 4.14 065/110] led: core: Fix brightness setting when setting delay_off=0 Message-ID: <20180204090531.GA29468@amd> References: <20180203180015.29073-1-alexander.levin@microsoft.com> <20180203180015.29073-65-alexander.levin@microsoft.com> <20180203203525.GA5860@amd> <20180204003029.2lkcmh6wvzpnlrls@sasha-lappy> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline In-Reply-To: <20180204003029.2lkcmh6wvzpnlrls@sasha-lappy> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun 2018-02-04 00:30:36, Sasha Levin wrote: > On Sat, Feb 03, 2018 at 09:35:26PM +0100, Pavel Machek wrote: > >On Sat 2018-02-03 18:00:59, Sasha Levin wrote: > >> 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 > >> *** stop timer > >> ** led_blink_setup > >> ** led_set_software_blink > >> *** if !delay_on, led off > >> *** if !delay_off, set led_set_brightness_nosleep <--- LED_BLINK_SW is= set but timer is stop > >> *** otherwise start timer/set LED_BLINK_SW flag > >> > >> echo xxx > brightness > >> * led_set_brightness > >> ** if LED_BLINK_SW > >> *** if brightness=3D0, led off > >> *** else apply brightness if next timer <--- timer is stop, and will n= ever apply new setting > >> ** otherwise set led_set_brightness_nosleep > >> > >> To fix that, when we delete the timer, we should clear LED_BLINK_SW. > > > >Can you run the tests on the affected stable kernels? I have feeling > >that the problem described might not be present there. >=20 > Hm, I don't seem to have HW to test that out. Maybe someone else does? Why are you submitting patches you have no way to test? Plus... you don't have PC keyboard? You don't have thinkpad notebook? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --/04w6evG8XlLl3ft Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlp2zNsACgkQMOfwapXb+vId9QCgmDzJ8JPcYRsb7DlBiGAuLgEN saUAn2lRJlxZVmsUJ61Rt/U4wdJIAbpw =J69y -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft--