Received: by 2002:a4a:3008:0:0:0:0:0 with SMTP id q8-v6csp3629680oof; Mon, 10 Sep 2018 18:22:49 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY5eWEv9czIufVcv1NocR6lBI3kLWVqtA9AqfICfj2c8BNOUfOfnZ4yWu+cK9gb2QbPJNEu X-Received: by 2002:a63:2d87:: with SMTP id t129-v6mr25697046pgt.128.1536628969431; Mon, 10 Sep 2018 18:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536628969; cv=none; d=google.com; s=arc-20160816; b=pvwvlce1q9xodZu3vWSj5GacSJ/Qdj30tRfVwSMbImU8Kvo6Z5h9bGBMfw50upEbgt MT4M3JwZ9MP4o96O6qdMkUTNedqr93X58Kw4MZ3NCnT9XFt8GIVV+VkMEjd10/DNIM3X rTvKtYYTBtp88JyQrDJREn3ZKQvXKCkY4M4BHPZffbLZR7pvyMF0jygVq/xiogBnfw5I /VtTbw9b6pMMw5icb7djrX3YCY0uuROY5Y9Z+ZeXkmC/B0IfQyjyY0mqGgE33hxaKfsM 7HfBDIl7ljSa7uZckm6U2w09FT8OebaPm567AyPZEVcFTQNii+DwhaEF8+Le05Jt4qpK YNgA== 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=bdW+dR3T2tZkUKwqsZtNOS31TIkjDdiGlI9dqF8giL8=; b=MZfM9UkLanZGUUowZ1FbAb06tP8otuMoxt3DHgZoeL/vxvay36k2LQGt1A3gXwxYob YVsRWABEIECPtcyE3Qjl1X5FGsKd6SgJUi+kKkWIqQRDQrJy0GqvgklxHE6SnZEgoq69 X61VqZKrRXo8Wn5tLg4NYiGjb2ExKP5yP2wafIoKGvH2vZTLYxj/zAvCt833vlzOs659 jUJ5ulsOXxYbx2Jv70Qgh17qwMGNitIsiEMF31zaLrXQHKjtSbujCc9XG/TTf49E74/l dnHbT5OR7qshfmBneBSX9Ek5XWnI4kuqcC1z3L+83mE/dq9jD1RgZQFEkJDplgTjIS/2 5ROw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mh58OZoD; 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 i3-v6si18306376pld.454.2018.09.10.18.22.33; Mon, 10 Sep 2018 18:22:49 -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=Mh58OZoD; 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 S1726483AbeIKGTM (ORCPT + 99 others); Tue, 11 Sep 2018 02:19:12 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:35252 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726338AbeIKGTM (ORCPT ); Tue, 11 Sep 2018 02:19:12 -0400 Received: by mail-oi0-f68.google.com with SMTP id m11-v6so44113807oic.2 for ; Mon, 10 Sep 2018 18:22:27 -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=bdW+dR3T2tZkUKwqsZtNOS31TIkjDdiGlI9dqF8giL8=; b=Mh58OZoDMtHl5elm6/SAWHXWbZTh/UpDUrkw2mfFlylT1NsJX//bE7w8/Srbc8MaLA 40jj6rA50Pwr9S49+hVc9xkztRVFFZS+C9e/UYtyZR3TVLWa8q5cmp/KdOwIaHS/M3mh bfrPBdSMsenwaxyDEiLs6/DQanq4t90YFpq6U= 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=bdW+dR3T2tZkUKwqsZtNOS31TIkjDdiGlI9dqF8giL8=; b=ideMLtrrtdQnRFC2cLATupyxV0IybRPGVXnibuIXYZ+f3P6aly2UTv7WcSZVWPLYl1 mnOJqrmBujRM4v9uIKPAPZ55DKuBMbuxjWmfb/igyjkAWnyvtBsvHhBtyBAjgbRN49/1 /n7c0jxx5+SbG+0hEIkfchq+sNEAQdV2EshkWIcCr5lqF5aTOwzWad87WyrIRaua0uUM tASbwrJsyrgnPrUBoLsP6xK1e+hN+UgZ2P8/OzoeIxjH0tIkJ5ExzWfKH/Ywvv0QY0L0 UwDd+toQPRM00dD5WpsTcK3+P2iV2EVz4/ltEHVRux648dRoZd5dCy459+ITST9zy3Kw +c8g== X-Gm-Message-State: APzg51DayXxvjcwITH7SfJSu9GFriBxIKEaK5gG4Ud+NdqXlNELFYsZ/ WWYXzGjQfMIPhEPYQ7PNqk/ktaD8KjM7FgrkJ8eKGA== X-Received: by 2002:aca:e005:: with SMTP id x5-v6mr24241619oig.328.1536628946816; Mon, 10 Sep 2018 18:22:26 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:3ec8:0:0:0:0:0 with HTTP; Mon, 10 Sep 2018 18:22:25 -0700 (PDT) In-Reply-To: <20180910212051.GB4697@amd> References: <5a502ec29251c019ddad8f3314ab45fc0f6feaf7.1536027873.git.baolin.wang@linaro.org> <20180908050208.GY2523@minitux> <0190dc10-99a3-abb7-b196-a537c49a2b6e@gmail.com> <20180910212051.GB4697@amd> From: Baolin Wang Date: Tue, 11 Sep 2018 09:22:25 +0800 Message-ID: Subject: Re: [PATCH v8 1/2] leds: core: Introduce LED pattern trigger To: Pavel Machek Cc: Jacek Anaszewski , Bjorn Andersson , 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 11 September 2018 at 05:20, Pavel Machek wrote: > Hi! > >> >> I'm still convinced that this will confuse our users and to me it would >> >> be more logical if this denotes the number of times the pattern should >> >> be repeated, with e.g. negative numbers denoting infinite. >> > >> > Sounds reasonable. Let's change this semantics as you propose. >> > >> >> In particular I expect to have to explain why my driver expects that you >> >> write 0 in the file named "repeat" to make it repeat and 1 to make it >> >> not repeat. >> >> Hm, so there are some cases we need to make clear. >> 1) If negative numbers present infinite, so what's the meaning of number 0? >> 2) What we should show for users if repeat number is negative, just >> show negative numbers or one string "infinite"? > > I'd say just -1 is infinite, anything else is error. > > And yes, reading it should just display -1. OK. Thanks. -- Baolin Wang Best Regards