Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp315050ima; Wed, 24 Oct 2018 01:32:57 -0700 (PDT) X-Google-Smtp-Source: AJdET5e+991TMPxDAcH/0JXWPk06/Khfki+EDkxSvVwIn36JxUvPRFa1sIzjB9SNZh6i7YDBN4AA X-Received: by 2002:a17:902:9a44:: with SMTP id x4-v6mr1628768plv.121.1540369977840; Wed, 24 Oct 2018 01:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540369977; cv=none; d=google.com; s=arc-20160816; b=Biw2bAyU6xYG+RhlcYzkE3FzGCv7orrdm0eFMu8AiVrbyC49L+ID5I+WJicNpRYRCA dW9XketYR5fP+c32PuRq2pyAfsUHnRQuM7rNgAvxZvkX1iGMyoCbtXdQi1NsMNemiGIi FkC71FtZkk7+gcytghDBz7gh0N+qC94iiukOuN4ybqsLFb55r+piFtWEIoqQZjvIB9KW m3zvFXNNgRIsAGDvM19o45xqvz1ElorEw4JTSj1wCFD/jSB/CK8ysftvypCr3wveDXcG 3xa/91WYbxY2nF3E6o2SUElSgWvqigNz9wE12+FrflZZLx8pu/hyUhe6iURFQjH0PzES EfYg== 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; bh=LZrtxc884t9VZFPa0+NTCE/Vg5/LQa0Af8Wk+M8d3PM=; b=QOPmQnSWSMIy5P4EuN3gb2PSZQvW1+7uBS/vXl4qD9nSseoVfL0nXI5YVcBOIsxMaH ZthhvSFCAy/IQDwOUgx1ThbIJzjRTyRTeFEf41Zkf6zHYThf2v1A8z4IslufiG2xwfC7 TVmm5fUiZ5P3fqACMRycS0bliixxLMCLfvWwLbESqhQU9kN6RAy/MZhMnzKueSuMcCZ2 iLh+W5xryVIE/r1Jy2c+KDHJXfTFPPtQEk94m/WocV0yH8CMEOcfubhhxXVfmYfM0wBC F7Nhmtr6ESbUJXhqw6paKIryPmK43fuAhWidpp2FpYHUoZ3KDzA00d1csGcM/TUHavIC FvNA== 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 g13-v6si4063336pgk.21.2018.10.24.01.32.42; Wed, 24 Oct 2018 01:32:57 -0700 (PDT) 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 S1727276AbeJXQ6z (ORCPT + 99 others); Wed, 24 Oct 2018 12:58:55 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:47995 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726851AbeJXQ6y (ORCPT ); Wed, 24 Oct 2018 12:58:54 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 2E50680699; Wed, 24 Oct 2018 10:31:43 +0200 (CEST) Date: Wed, 24 Oct 2018 10:31:43 +0200 From: Pavel Machek To: Jacek Anaszewski Cc: Baolin Wang , rteysseyre@gmail.com, bjorn.andersson@linaro.org, broonie@kernel.org, linus.walleij@linaro.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v15 1/2] leds: core: Introduce LED pattern trigger Message-ID: <20181024083143.GA24165@amd> References: <9794969ab8a5a6f62d8ac54cdebcaa3caedfc6d6.1539230481.git.baolin.wang@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline In-Reply-To: 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 --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > + > > + The gradual dimming format of the software pattern values should be: > > + "brightness_1 duration_1 brightness_2 duration_2 brightness_3 > > + duration_3 ...". For example: > > + > > + echo 0 1000 255 2000 > pattern > > + > > + It will make the LED go gradually from zero-intensity to max (255) > > + intensity in 1000 milliseconds, then back to zero intensity in 2000 > > + milliseconds: > > + > > + LED brightness > > + ^ > > + 255-| / \ / \ / > > + | / \ / \ / > > + | / \ / \ / > > + | / \ / \ / > > + 0-| / \/ \/ > > + +---0----1----2----3----4----5----6------------> time (s) > > + Ok, so I got around to testing this. echo "0 1000 10 2550 0 1000 0 100" > pattern makes expected pattern [ .-xXx-. ]. But when I do echo "0 1000 10 2550 0 1000" > pattern I only get expected pattern on the first iteration, then I get [ Xx-. ]. I'm using led-controller:flash on nokia n900 (so everything in software). > OK, let's abide by constant update interval for now. >=20 > Thank you for your work on this patch set throughout > all these months. We will have -rc8, so one week of testing > before sending upstream should be enough. >=20 > Patch set applied to the for-next branch of linux-leds.git. Thanks! Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --lrZ03NoBR/3+SXJZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlvQLe8ACgkQMOfwapXb+vJv3wCcCzjCiv8b5zBW5DE6MWaAQVjS oxUAn3rZi5MI0deWIzolnVib0O+1VRRC =4v+J -----END PGP SIGNATURE----- --lrZ03NoBR/3+SXJZ--