Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp889811imm; Sat, 14 Jul 2018 15:39:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcjRDyr1jMc32x7VWw7j9grQNCwCLKaW+h+4ykUgz0F7dig5N6pIWeT88CJ5sv2FOlg5jxO X-Received: by 2002:a63:4811:: with SMTP id v17-v6mr10555777pga.379.1531607996530; Sat, 14 Jul 2018 15:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531607996; cv=none; d=google.com; s=arc-20160816; b=eYHWS8gBCwRL2ZMh2Sn3Se63wfu2Sw346H6UQHtxpiinf/mTHGssy4u5ab+s1MJ1x3 OMAZjwqZvBKStykjPW1XPx0OrIAhRk6TDq8U6cRUjfsp1t0hDkLU58bA6DwD03jYDNtu cHj/Br2XWwavrO2Zcuxv01bzER4kX4bTdGqeyo8y/ozlo9BpsgUnsaP8eiiSnNoIXD/k 8h736vVzQIeR1OblHJF5FXUBjYBP4sPLQqXiZCmC9bFPxKs4hKvzke/H802S45rse/U4 5kR046ieTOLjtK90s+ns1hbsKfa2TjmWpHmTWRzh+HUGGlwIIK6FMrSiYVSVk39nMudM +dKA== 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=zDqjKvPVDFJ9J8D4icSjyPFZzdn4ZMeaCew0cQgOaKs=; b=PJQsuQnXd1T8mjRl/K25FHmo2PdYooKtGb8LKDpE/n7ffvbihWmoY1pzL7dnJSjUFR OqPXJ1BTZHIoryCYfQhqVdzr3CQmOPLcDecYDerZuF6acONFtSTeaJIe2jlI8wp7ntf7 o+fa0RNlQd84lz6FIz/DJBtVsFlB/CEU4EwwBch2JkpXmA8jZFd3J3mJ3vv0jyyGoeeK x/FLCESdCJzOT96vrqgHHTts5gUYHUczw+cj55lx3nt3P4VFPrtm6dGsrRUhPwMuHojs Fw2rR+2ao3BYBPqLxZPZuFkwW/UUwZhJ9isBbYnQ45GbliavsOqK27yR1AuyfuPkPaAj vb6g== 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 a18-v6si28607046pfc.106.2018.07.14.15.39.41; Sat, 14 Jul 2018 15:39:56 -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 S1731877AbeGNW7o (ORCPT + 99 others); Sat, 14 Jul 2018 18:59:44 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:46544 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731403AbeGNW7o (ORCPT ); Sat, 14 Jul 2018 18:59:44 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id D05CF80544; Sun, 15 Jul 2018 00:39:07 +0200 (CEST) Date: Sun, 15 Jul 2018 00:39:07 +0200 From: Pavel Machek To: Jacek Anaszewski Cc: Baolin Wang , Bjorn Andersson , Mark Brown , Linux LED Subsystem , LKML Subject: Re: [PATCH v3 1/2] leds: core: Introduce generic pattern interface Message-ID: <20180714223907.GB2776@amd> References: <1665b877dc2f886a90a00e3ca3b7425372d99b6e.1530248085.git.baolin.wang@linaro.org> <8da1b769-8aa3-9698-467a-2e7b0707fecf@gmail.com> <20180714212033.GA31950@amd> <00fa2693-9308-8d74-0124-04066a76c35a@gmail.com> <20180714222924.GA2776@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="l76fUT7nc3MelDdI" Content-Disposition: inline In-Reply-To: <20180714222924.GA2776@amd> 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 --l76fUT7nc3MelDdI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun 2018-07-15 00:29:25, Pavel Machek wrote: > On Sun 2018-07-15 00:02:57, Jacek Anaszewski wrote: > > Hi Pavel, > >=20 > > On 07/14/2018 11:20 PM, Pavel Machek wrote: > > >Hi! > > > > > >>>It also drew my attention to the issue of desired pattern sysfs > > >>>interface semantics on uninitialized pattern. In your implementation > > >>>user seems to be unable to determine if the pattern is activated > > >>>or not. We should define the semantics for this use case and > > >>>describe it in the documentation. Possibly pattern could > > >>>return alone new line character then. > > > > > >Let me take a step back: we have triggers.. like LED blinking. > > > > > >How is that going to interact with patterns? We probably want the > > >patterns to be ignored in that case...? > > > > > >Which suggest to me that we should treat patterns as a trigger. I > > >believe we do something similar with blinking already. > > > > > >Then it is easy to determine if pattern is active, and pattern > > >vs. trigger issue is solved automatically. > >=20 > > I'm all for it. I proposed this approach during the previous > > discussions related to possible pattern interface implementations, > > but you seemed not to be so enthusiastic in [0]. > >=20 > > [0] https://lkml.org/lkml/2017/4/7/350 >=20 > Hmm. Reading my own email now, I can't decipher it. >=20 > 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 to activate pattern, and echo none > trigger to stop it. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --l76fUT7nc3MelDdI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltKe4sACgkQMOfwapXb+vLw8QCfVp+7875oW8KueBC08iu6m7E8 67YAn0WI3E8AfTf/AsXV/at5HDHp9i5g =KhLX -----END PGP SIGNATURE----- --l76fUT7nc3MelDdI--