Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp760829oof; Tue, 25 Sep 2018 04:24:27 -0700 (PDT) X-Google-Smtp-Source: ACcGV62ehU8oy0wRGBfqMgAQLNE4h8Jfu76/gs444cXx3ceiaXRnHc81pXNojCNdvdi94SbYgPup X-Received: by 2002:a62:920d:: with SMTP id o13-v6mr602302pfd.177.1537874667441; Tue, 25 Sep 2018 04:24:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537874667; cv=none; d=google.com; s=arc-20160816; b=MWi68oTM2bzDh/eQDojiZ2we//V+dHQN/bsgcvnUmB17KDV3bntOjz0WfV6Zt2P/sB YaDpJMVpv4HnSnRQP79HJZVA4mulaZuoh/1raEfY8dLAZZWRz7Q1bg3nuukW3jErdq12 G8QeDXDC4EkkbGWiIed/lr2lKqR5/L0LtnAh9aEnQKFZ6t02cNlcg40Sdg/a7wP+Y+YI KbsJvatqaybspTmH/xnjE/AgA2PLm2Wu7pQQ3pOBbSIcljLT2fmQVTo5+JYeXP64PaF/ Gg0FgzHCZqe2d6U6pW5Q+QkKvmFTqrlEU35OwmjiooDFO6Wo2CfKDBxPxTwoB+jHUGZm jdtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=C1vtzp9N5qytn1NTTvs1cPPo4V4r95mCgGBEtEWGh30=; b=fTCb/3yeAtqon6Wm9YMENOAAta9UPh14nIB3Ui9HvChD8Cnz93yvSpQSGMRrGqXlRh fnEvpJVXJ6msGPsj4NffsLFlz8qXo3kDcCs2xyRHXGcVazT6cad6ZbxymGL5671Mmf8t 5RftfA2qEm3lnXHhDCWlC19NapdjwYsevQpvj68D9Bsd5dAJLWhvUe/1lVbj8wASUX+1 exKFMkXcD5ucPv/syWVvnYf4tuNQSfQq7+vr6CYnRQtsJLjkLJhfo/Xgga4CzzVk8Zye EvtSaTSmC/JyEjSe3JmOviuzrddmnCIi4mk/9z3U1hAMczRG6S/8X3TqbHdIhs9rpbV6 yHng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G4AgVLUB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q5-v6si2060226pls.435.2018.09.25.04.24.11; Tue, 25 Sep 2018 04:24:27 -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; dkim=pass header.i=@linaro.org header.s=google header.b=G4AgVLUB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728748AbeIYRbL (ORCPT + 99 others); Tue, 25 Sep 2018 13:31:11 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:38575 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728421AbeIYRbL (ORCPT ); Tue, 25 Sep 2018 13:31:11 -0400 Received: by mail-lj1-f195.google.com with SMTP id p6-v6so21335363ljc.5 for ; Tue, 25 Sep 2018 04:24:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=C1vtzp9N5qytn1NTTvs1cPPo4V4r95mCgGBEtEWGh30=; b=G4AgVLUBj1UARvuaO33IcGzb7nxaui7gzbr51Ly8BeY1KT/K0OMDGGNTDV2kZ9sKEI +suwuuJlAMJHf3DyvWiAteeqMSFXwpQLA4O8oV/ahXwPHyCjU1NZvlYy264JEa4F8szu 7b9oV1xBcQiS34Jss1ZQThmCeMs0m/ubskPdY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=C1vtzp9N5qytn1NTTvs1cPPo4V4r95mCgGBEtEWGh30=; b=S4nJWYQfAEYHCy/EU1ZZVQFT6hRgQXIBctt/Fwb0PQFO0MKlKxSd0xMwj3GJN/TDYX NC/wwfxtxE+I5mIDylr5pyusYrdCWaSjMjPLlr8nRUWq1SL9A0rGaqcLHFCkmFcDKv0E QkGF5rzsmKd7W4agSBYY1qDNgpxE1yzR6R8ukrLjAq7dVkUBM//vw/QH/HRtS3/jLQsZ Heg/p0TOkfuzOgNMQacvRLcc0IslMWgtl7/aLOCf2Av/Xtrk5OY/tyulOLkSPWRRs8f3 Xm+p57+DSKkJVklMt6PWHfOLh1Dqzo5dskZtrjxAi5kCWDEFwmrtNkILbctCN++jfffD c9UQ== X-Gm-Message-State: ABuFfoitYoTi78Pgj5JBKsJXwZ9ttFYptnTNG0pbHcyyO5DPWBGQAloC zVDSihqw5hrvHFtaUVMkIUjaZw7wrq5ZHXsRm4yW3A== X-Received: by 2002:a2e:9d7:: with SMTP id 206-v6mr460613ljj.127.1537874644508; Tue, 25 Sep 2018 04:24:04 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:95d7:0:0:0:0:0 with HTTP; Tue, 25 Sep 2018 04:24:03 -0700 (PDT) In-Reply-To: <20180924235452.GI2523@minitux> References: <67ebebf02edd6d8ee42a13b139733e9cc680ea86.1536631975.git.baolin.wang@linaro.org> <20180924235452.GI2523@minitux> From: Baolin Wang Date: Tue, 25 Sep 2018 19:24:03 +0800 Message-ID: Subject: Re: [PATCH v12 1/2] leds: core: Introduce LED pattern trigger To: Bjorn Andersson Cc: Jacek Anaszewski , Pavel Machek , rteysseyre@gmail.com, Mark Brown , Linus Walleij , Linux LED Subsystem , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25 September 2018 at 07:54, Bjorn Andersson wrote: > On Mon 10 Sep 19:47 PDT 2018, Baolin Wang wrote: > [..] >> diff --git a/Documentation/ABI/testing/sysfs-class-led-trigger-pattern b/Documentation/ABI/testing/sysfs-class-led-trigger-pattern > [..] >> +What: /sys/class/leds//hw_pattern >> +Date: September 2018 >> +KernelVersion: 4.20 >> +Description: >> + Specify a hardware pattern for the LED, for LED hardware that >> + supports autonomously controlling brightness over time, according >> + to some preprogrammed hardware patterns. >> + >> + Since different LED hardware can have different semantics of >> + hardware patterns, each driver is expected to provide its own >> + description for the hardware patterns in their ABI documentation >> + file. >> + >> +What: /sys/class/leds//repeat >> +Date: September 2018 >> +KernelVersion: 4.20 >> +Description: >> + Specify a pattern repeat number. -1 means repeat indefinitely, >> + other negative numbers and number 0 are invalid. >> + >> + This file will always return the originally written repeat >> + number. > > This captures the infinite case much better, thanks! > > Given that 0 is described as invalid, does this imply that setting a new > pattern the repeat will be disabled? And hence if my hardware supports > only infinite or no-repeat setting a new pattern is the way to disable > further repeats (rather than just setting repeat = 0)? It won't. A new pattern setting will not affect your infinite or no-repeat setting. > Regardless, I believe the semantics of these two files will work fine > for my Qualcomm LPG driver. Thanks. -- Baolin Wang Best Regards