Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3138637imm; Mon, 24 Sep 2018 16:55:18 -0700 (PDT) X-Google-Smtp-Source: ACcGV61NLtdp7YowGiR0s5MUDHGROXQJgayWbzl6IK1fii8p5FyPl9IjCQR5tHpU/ZjV+2yppXse X-Received: by 2002:a17:902:6e17:: with SMTP id u23-v6mr928807plk.28.1537833318346; Mon, 24 Sep 2018 16:55:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537833318; cv=none; d=google.com; s=arc-20160816; b=thmrAN8zP4tpXz3Y161Im8HocBUQ8y+xg+f8QZ2+ly/sYgtpW8t7/tNjMHzUpvbjkt 7lxD9sYpTuOG5gSLuYSlA6B6wGavm3zcjDwXW1UsYK6n1PE9T/IKweoePLCeapLT2mg7 vuuTdiMKKgGasIdbXCajUiMeTMpdx1bEHRRzryfAmKF7abcGt2VUVpPZ1D+Ck6QqVUS4 8Bf/b8GDSYN+Zo0SIu96efr6qOBI3J9DubxFcSCxaenX5/W8u65T6KAJdxCYIy1QfrxF lgOr6JOcZxLYCMazEhy9mcHKEkTZ0eVB5gz9gJUSBogyYHuuDXkck3s6dCJ0wNxkbyCw 0Eug== 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:dkim-signature; bh=+aWUmSJ5yMJ+w9P7Y//bz8CUVmmZRWaY/PsDPQct91s=; b=wLWt6nPnNEqH+zk+eR33LaFoOjMrRjkQHZHa0JFHcsHF6Gm1MIhiZlJUXWSoCxnKTi CLGbYhNi6tKaOicdNJjPovw/YJPRnQhKJObH2YHay9uJHmvmV2DzmjoGqdNEwVOjJYhI C/NwQVsL6LsOhGo31qHS3+HM7uCy7KDAXb3iIV8nMCJtDJai8S/F234L0cSndJLZ5XyN yXtdwCxvKdPID/rHoft58fuK/YPUHhQGF+8FHmaSVxEEEr7XB9eUw0tQrrfCaAEsapID lFC+E5PYCwXO2h4MbvtSon7B7nJvE/h7XpUgTtTXZg4yw9h1VGLDyrRp6PX9GCo5wkiz PwDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aaZt58zQ; 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 i64-v6si715508pli.56.2018.09.24.16.55.02; Mon, 24 Sep 2018 16:55:18 -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=aaZt58zQ; 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 S1727587AbeIYF7i (ORCPT + 99 others); Tue, 25 Sep 2018 01:59:38 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:44907 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725745AbeIYF7i (ORCPT ); Tue, 25 Sep 2018 01:59:38 -0400 Received: by mail-pg1-f193.google.com with SMTP id g2-v6so2071925pgu.11 for ; Mon, 24 Sep 2018 16:54:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=+aWUmSJ5yMJ+w9P7Y//bz8CUVmmZRWaY/PsDPQct91s=; b=aaZt58zQWsvca9z3qMyrIKxytxrfLhGTgpWgn1aKndV0w+P3fKfM54P97Bqnq0WGMR 0dkwwbTLjwAjJAeI93FlzMYuUdoUahVXjUELDqD/qiGy1R4nVjX68sFGANUbOX0xEzkC xzL66DFlvlKv3MU8GLpk5Ncmqet6S6THWnsRc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=+aWUmSJ5yMJ+w9P7Y//bz8CUVmmZRWaY/PsDPQct91s=; b=MvzHowAjqOi/tyopdOBiEFplyZKc85Ctg0dtnpTQ4kja7/qIpj05J2QwJkB294rrB/ bywcsmbUT0yOFKdpzN+ZbNEJlsPUQHQC1yrzcGkhHseIf9Q+2be3WHchMZ51EMu2sBB7 dQDwi+iz883zbqVKUnJKaA/ST7DYbdB3MY5uFF8VMICSW6sMlSaWpB6NpqEo3ENi0z5x KlnbD8+qFMHPXj67v8lL1tzjzKsAvP8ge+c7cdiMyhN18JN90epdHZDgIVT6L3upLnht doEJ4eBSw+LLQVIWHu5rSCMqib3IairbV8Gk0aqw9j0F5QqTAB0LLYPTgwNhkJXA3qvs 2izQ== X-Gm-Message-State: ABuFfohLQiF6eVf5FRDb/Z6PKsyOovx9yYrmwcMsAxtaqyW/0oJSsmPo QBA9xH+7v0KkSENAujSxLCu0Dw== X-Received: by 2002:a63:7107:: with SMTP id m7-v6mr841925pgc.73.1537833295756; Mon, 24 Sep 2018 16:54:55 -0700 (PDT) Received: from minitux (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id k3-v6sm846159pfk.60.2018.09.24.16.54.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Sep 2018 16:54:54 -0700 (PDT) Date: Mon, 24 Sep 2018 16:54:52 -0700 From: Bjorn Andersson To: Baolin Wang Cc: jacek.anaszewski@gmail.com, pavel@ucw.cz, rteysseyre@gmail.com, broonie@kernel.org, linus.walleij@linaro.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v12 1/2] leds: core: Introduce LED pattern trigger Message-ID: <20180924235452.GI2523@minitux> References: <67ebebf02edd6d8ee42a13b139733e9cc680ea86.1536631975.git.baolin.wang@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67ebebf02edd6d8ee42a13b139733e9cc680ea86.1536631975.git.baolin.wang@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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)? Regardless, I believe the semantics of these two files will work fine for my Qualcomm LPG driver. Regards, Bjorn