Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3253222imm; Mon, 6 Aug 2018 01:08:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfdC+gI0Hmih1yjAGPQFIn0eYxf8ZaRlWj2qrMSNvZbJpRc6AWps7fB0l+5Z7224jmayVtd X-Received: by 2002:a63:d916:: with SMTP id r22-v6mr13214563pgg.381.1533542888038; Mon, 06 Aug 2018 01:08:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533542888; cv=none; d=google.com; s=arc-20160816; b=dk4G4aW2YKJ6TQSeT0mKv48BE1/6DaDp9Pcp/WQ6K97yuULgAF4IV+fqFiNt1dx5zO tSC9D7Ukg7tUxkWddTX3zCIeGgANhk/fPCaYvnsE1OwKLcLNSgvB1mVM8atH6NFwrzeT zOKz/maD0pnW0e0ysk50b+ogIJOXB/QUl8hXyxLqKmYT+yqr64eO2Sy1vyTxxIvxjRhz xKtOktf1EmMqf4M69vpgeYCFUjPIoBDHPPdLiZZLU3stQkMWcSYyu/Q8d9BiOTJqMWOb R6O8WET0fMf6R7jYLbYBzOUVEjsajHxnQNA5peCRS7RtKvErloRJwhJsJrJFt2wN0Fze F8bQ== 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=xtlf5Mojvcl/qA1fT3+Etb7vUdlmfHZby/bnAridrfI=; b=c94ggnBgGCCP4qdUhFo5gZW9ZoSE4uI/9OmxoTNgLnZVu/QTaEYIvHyhdjbVzkOkei KCAyFeCRBRHBOmCbXrGAT8oxl8QrrSHjPkjgPEmYRKDxDt5JQ4BM6R4qC/4JfhFqY9cI 5lP2J6aCHFMo38Gopcr1JcILI6r+/fXNlBdfcqqRWwfBZI6FuGY1Dy7Vwi9n4U+LmiJp Bi+trQ5JbEMvNLVP3lES1mqKVLR5zX57IRunb5/y989nm5J0ttzqFv9RasWyQZSj7BxU iUPRvCMilOMowGtZe60JiWkPQ9T0X1NY4tZNQdY4XEW/VxRLFFavzIThjKFUbWi8A29b g0mA== 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 i2-v6si9598735pgs.432.2018.08.06.01.07.47; Mon, 06 Aug 2018 01:08:08 -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 S1727461AbeHFKON (ORCPT + 99 others); Mon, 6 Aug 2018 06:14:13 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:57967 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726482AbeHFKON (ORCPT ); Mon, 6 Aug 2018 06:14:13 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 43CBD8062C; Mon, 6 Aug 2018 10:06:19 +0200 (CEST) Date: Mon, 6 Aug 2018 10:06:17 +0200 From: Pavel Machek To: Baolin Wang Cc: Jacek Anaszewski , rteysseyre@gmail.com, Bjorn Andersson , Mark Brown , Linux LED Subsystem , LKML Subject: Re: [PATCH v4 1/2] leds: core: Introduce LED pattern trigger Message-ID: <20180806080617.GA19523@amd> References: <3d7e8701-d92b-9f51-befa-a585b5957488@gmail.com> <20180806070958.GA5231@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" 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 --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 2018-08-06 15:33:12, Baolin Wang wrote: > Hi Pavel, >=20 > On 6 August 2018 at 15:09, Pavel Machek wrote: > > Hi! > > > >> > In current implementation this file on read returns the number > >> > of remaining repeat intervals. I'd add that to this description. > >> > >> I saw Pavel's comments that he did not suggest do this. So I will keep > >> the original description? > > > > If that is accepted, the code should return originally written number. >=20 > But I think it is more reasonable if user can know how many > repetitions were left. So for your hardware case, can we add > pattern_get() interface back to get the repetition number? Well, I'd say that we are mostly seeing "infinite" repetitions, or one repetition. Yes, interface could be added to the lowlever driver -- but I'm not sure hardware really supports getting that information; could be tricky on N900 for example. I'd keep it simple for now. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltoAXkACgkQMOfwapXb+vINPgCeM8R1YrNqeXKoGB7to5s9Nodi OcAAn18cPCIZ2NWLtPWT8uiTGpwE2jlz =F074 -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9--