Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp268285imm; Fri, 21 Sep 2018 14:06:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZN5qJ8YJkykx/tw7Lj1XFe33PkEvb9/gL9Kk4itFx2WabiWlFffAhA0+wfqLWPavx3vaFs X-Received: by 2002:a17:902:bd98:: with SMTP id q24-v6mr30533771pls.22.1537563960846; Fri, 21 Sep 2018 14:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537563960; cv=none; d=google.com; s=arc-20160816; b=mMtp1CuQJNJkqlm6kzDfkAFLmMm4kFWug/0B1MuC9HN8YRyYO4Ipt2aN+Lur5rmyMQ omCvzgUU8LztVVh+AUOSLIbLvTI6N+VUdZzF6OEPxD5uwQc0GFSfyK4YdBvJ+UV21KIG Mq1C0AkExyzOzrQBHiuF6q2DRbPXJyZi5VI0vX2/G1478p9NMtTkuk40cxzhlI7G6uJq 3Ht+PGgScmk9w9xhX0REnw750paONi026gbdmBWpN+Cga34pjZ8TMp+EEG9xFsV+SCBH Oc4q/we0LEIOeIsrLVEFPtzcZt9Vdv3DQCuVk2CT5bPgmjkTC0sSdFDCzUK1JJHWwbEZ vC+w== 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=yZw8gg76RkA+ry+Dq95U3mR7/bDQmUw+Ravo/91thA4=; b=yefVZeUkH0BaKpw/dfACSosPvn8ZkVNhb811qWQTXgEQTU1KOUBhBeTZW6aOkeL7Ow bTMMRqBMRadm7ol0Zz6L2Uo5F992sWo/SmPmVMS6UHA9xBXFmpjR0mGbXnHT8qR/SmoB 9ro6aZGfKYumjtvJbsYOA2zs+DeEjK8dtiSIeEqmVR1YCFWAIaBgipQ49LSGIY1ida+3 pQGB5WWT1IckQWAmrUUTtP3WEPSbEP0NrFBsRldBJLsrEEp/Ws8WP6fQW14hbfLqvyzI YjvQmFOqym/2rhKyoIVG+i0ujnnELZd1cxl9kvwazC3QNvV3/0wuTDco7fUmBOQlZ2qo 3/SQ== 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 v1-v6si29801245pfc.23.2018.09.21.14.05.44; Fri, 21 Sep 2018 14:06:00 -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 S2391527AbeIVCzV (ORCPT + 99 others); Fri, 21 Sep 2018 22:55:21 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:59010 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391321AbeIVCzV (ORCPT ); Fri, 21 Sep 2018 22:55:21 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id E3C0880736; Fri, 21 Sep 2018 23:04:40 +0200 (CEST) Date: Fri, 21 Sep 2018 23:04:40 +0200 From: Pavel Machek To: Jacek Anaszewski Cc: Baolin Wang , rteysseyre@gmail.com, Bjorn Andersson , Mark Brown , Linus Walleij , Linux LED Subsystem , LKML Subject: Re: [PATCH v12 1/2] leds: core: Introduce LED pattern trigger Message-ID: <20180921210440.GA18062@amd> References: <67ebebf02edd6d8ee42a13b139733e9cc680ea86.1536631975.git.baolin.wang@linaro.org> <324778a9-a32c-ae6e-337a-39845f214bfc@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline In-Reply-To: <324778a9-a32c-ae6e-337a-39845f214bfc@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 --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri 2018-09-21 22:59:40, Jacek Anaszewski wrote: > Hi Baolin, >=20 > On 09/21/2018 05:31 AM, Baolin Wang wrote: > > Hi Jacek and Pavel, > >=20 > > On 11 September 2018 at 10:47, Baolin Wang wro= te: > >> This patch adds one new led trigger that LED device can configure > >> the software or hardware pattern and trigger it. > >> > >> Consumers can write 'pattern' file to enable the software pattern > >> which alters the brightness for the specified duration with one > >> software timer. > >> > >> Moreover consumers can write 'hw_pattern' file to enable the hardware > >> pattern for some LED controllers which can autonomously control > >> brightness over time, according to some preprogrammed hardware > >> patterns. > >> > >> Signed-off-by: Raphael Teysseyre > >> Signed-off-by: Baolin Wang > >> --- > >> Changes from v11: > >> - Change -1 means repeat indefinitely. > >> > >> Changes from v10: > >> - Change 'int' to 'u32' for delta_t field. > >> > >> Changes from v9: > >> - None. > >> > >> Changes from v8: > >> - None. > >> > >> Changes from v7: > >> - Move the SC27XX hardware patterns description into its own ABI file. > >> > >> Changes from v6: > >> - Improve commit message. > >> - Optimize the description of the hw_pattern file. > >> - Simplify some logics. > >> > >> Changes from v5: > >> - Add one 'hw_pattern' file for hardware patterns. > >> > >> Changes from v4: > >> - Change the repeat file to return the originally written number. > >> - Improve comments. > >> - Fix some build warnings. > >> > >> Changes from v3: > >> - Reset pattern number to 0 if user provides incorrect pattern string. > >> - Support one pattern. > >> > >> Changes from v2: > >> - Remove hardware_pattern boolen. > >> - Chnage the pattern string format. > >> > >> Changes from v1: > >> - Use ATTRIBUTE_GROUPS() to define attributes. > >> - Introduce hardware_pattern flag to determine if software pattern > >> or hardware pattern. > >> - Re-implement pattern_trig_store_pattern() function. > >> - Remove pattern_get() interface. > >> - Improve comments. > >> - Other small optimization. > >> --- > >=20 > > Do you have any comments for the v12 patch set? Thanks. >=20 > We will probably have to remove hw_pattern from ledtrig-pattern > since we are unable to come up with generic interface for it. > Unless thread [0] will end up with some brilliant ideas. So far > we're waiting for Pavel's reply. I believe same semantics as pattern works well for hw_pattern, and suggested code changes to make it more robust. I don't really understand what issues you see there. 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 iEYEARECAAYFAlulXOgACgkQMOfwapXb+vIwxACeOY/GmDdT/ZG/AhTETS7oy+Zz 7JgAnRDsn5vgCJj2Z/pd4tlAv6EmaFjY =5GPL -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft--