Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp234562imm; Wed, 18 Jul 2018 00:57:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf7FTckS29f1/638uKHyTA05unLJ21b2xuf+EiDyAmwcVgQS1eWJU135KwvxcFd90Rb1Wxr X-Received: by 2002:a17:902:9302:: with SMTP id bc2-v6mr4910367plb.280.1531900655965; Wed, 18 Jul 2018 00:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531900655; cv=none; d=google.com; s=arc-20160816; b=lbhYxDeqJDxCIz2uOW0A+P27O8Ya8DyVtJ+OwMYddoe7dLipOXhq9GmECUJgdN/CHD eNXvXhxiEOKVXmU/zSAdIqLC4aFVYA+/Rk82zU3dvDgzAD5JANRqgI1YMXuch4PkQ4V0 wDEM50SCU09ZI9HeM7lbQoWJDSd8+3Qt8IRHb7dCjhBNVhiEuChGRlcMGIZiUO7zm3U1 D1YoRYCVMUxMv9KccJkL/8R08aQglZjFqACchTEuqt82xw6iErTzh+n8zPiYOqN34hJR j6YQfjVwW4CS1rGvZN5NLJY1eVV6xB49IPJy8D4ZmwJimcnVfxjJWSFFefAcO0o7j616 sZbQ== 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=knVQLqOULB4JwgahUMW6eVKMQQGBOql2TFVTNsPuXGw=; b=f0Ejxh1YFWDrZ+rN7/VCSd+1nzrbRn4c+lVJV+NgdGx1Gr7YYa8o1k9WGrDU9nz9cs HD+tAZ5F8/gmKI9UvxiJkZN3T7pbizo585wAnZDi7EjSqOZf0HCUCX/mjTaSZXMM8hZA RDadF2FTSu1PRsU9pk6lyNTm2Sc83+pafLoLd8rVmOgwWLN3eIU6wxiCpamZcX10EAr7 FPbcJCWx+4W6eO9sFrgb6HbRYxvaK10GbgeDb7kC3ojaF5l0LgHAqOAfVjJEuOgDQjtI D92DM7lnPqyhEfYX5aK97/eRZ4euejjVk3EpHPp7uHJYgg09CfqVWTYhnh/stPIhp/EY ZuJg== 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 r12-v6si438534plo.475.2018.07.18.00.57.21; Wed, 18 Jul 2018 00:57:35 -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 S1728278AbeGRIdT (ORCPT + 99 others); Wed, 18 Jul 2018 04:33:19 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:42505 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbeGRIdT (ORCPT ); Wed, 18 Jul 2018 04:33:19 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 09CC980558; Wed, 18 Jul 2018 09:56:37 +0200 (CEST) Date: Wed, 18 Jul 2018 09:56:37 +0200 From: Pavel Machek To: Jacek Anaszewski Cc: David Lechner , Baolin Wang , Bjorn Andersson , Mark Brown , Linux LED Subsystem , LKML Subject: Re: [PATCH v3 1/2] leds: core: Introduce generic pattern interface Message-ID: <20180718075637.GA10279@amd> References: <8da1b769-8aa3-9698-467a-2e7b0707fecf@gmail.com> <20180714212033.GA31950@amd> <00fa2693-9308-8d74-0124-04066a76c35a@gmail.com> <20180714222924.GA2776@amd> <20180714223907.GB2776@amd> <1138f834-e805-6076-bb5b-aa1fdc1f2606@gmail.com> <2c3a8911-150a-9b25-2a66-a9432047f96b@lechnology.com> <68996338-a902-2b57-0bb9-df274a496b06@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline In-Reply-To: <68996338-a902-2b57-0bb9-df274a496b06@gmail.com> 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 --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > >>>>I believe I meant "changing patterns from kernel in response to events > >>>>is probably overkill"... or something like that. > >>> > >>>Anyway -- to clean up the confusion -- I'd like to see > >>> > >>>echo pattern > trigger > >>>echo "1 2 3 4 5 6 7 8" > somewhere > >> > >>s/somewhere/pattern/ > >> > >>pattern trigger should create "pattern" file similarly how ledtrig-timer > >>creates delay_{on|off} files. Yes, that sounds reasonable. v5 still says + Writing non-empty string to this file will activate the pat= tern, + and empty string will disable the pattern. I'd deactivate the pattern by simply writing something else to the trigger file. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltO8rUACgkQMOfwapXb+vLjKACfW012LpW5uoDBam3r2Qm2oF5E gvkAn0KKqm3gCQfLbptNBNf5B4nOoEv3 =uDUf -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO--