Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752056AbcJCJyk (ORCPT ); Mon, 3 Oct 2016 05:54:40 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:23296 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751041AbcJCJyd (ORCPT ); Mon, 3 Oct 2016 05:54:33 -0400 X-AuditID: cbfec7f1-f79f46d0000008eb-1e-57f22ad5d6f3 Subject: Re: [PATCH] cleanup LED documentation and make it match reality To: Pavel Machek Cc: linux-leds@vger.kernel.org, kernel list , Greg KH From: Jacek Anaszewski Message-id: <1ac5bea8-4b43-73f3-b609-8dc5625b1cef@samsung.com> Date: Mon, 03 Oct 2016 11:54:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-version: 1.0 In-reply-to: <20161003093841.GA9131@amd> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCIsWRmVeSWpSXmKPExsWy7djPc7pXtT6FG8yaI2BxbsEMRovLu+aw WWx9s47R4u6po2wOLB5vHwZ4rFj9nd3j8ya5AOYoLpuU1JzMstQifbsEroxJl9+yFzzhrVg9 SayBsZu7i5GTQ0LARGLmzi3sELaYxIV769m6GLk4hASWMkpcmryaBcL5zChxsfElK0zHp4uP WCESyxgl/p/6D9XyjFFiz725TCBVwgIeElu3XgbrEBGQl9jat4IZxGYWSJOYO28mG4jNJmAo 8fPFa6B6Dg5eATuJjVv0QEwWAVWJ1osaIKaoQITE7rupIMW8AoISPybfYwGxOQU0JB5ee8AC MdBR4sGinawQtrzE5jVvmUGukRD4zyax7/0dFpA5EgKyEpsOMEOc7yJxZcdVFghbWOLVcZjn ZSQ6Ow4yQfROBvr32E1WCGc1o8TGzk6oDmuJhv+/oDbzSUzaNp0ZYgGvREebEESJh8TKVdeh hjpK7Nv+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9/0K9x7zZf5kvf+forLXXCs3tHQ7dO7uqoTQezXHp/oXmY/eZr9ZM/r F27E6wefqKpYJJFw/qVN4r7j2Y9Ynz/7vPFRvMyBPVL+a1fuPyyrXGL3nXFVia/3uXf8fb/W VxW9cVlULHCt8rvJLI1OJZbijERDLeai4kQAuC9Z+agCAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20161003095428eucas1p107aa9bc4154a9145a79f51c0daf23f16 X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?UTF-8?B?SmFjZWsgQW5hc3pld3NraRtTUlBPTC1TeXN0ZW0gRlcgIChN?= =?UTF-8?B?Qikb7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?SmFjZWsgQW5hc3pld3NraRtTUlBPTC1TeXN0ZW0gRlcgIChN?= =?UTF-8?B?QikbU2Ftc3VuZyBFbGVjdHJvbmljcxtTZW5pb3IgU29mdHdhcmUgRW5naW5l?= =?UTF-8?B?ZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjc1MjY=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20161003081122eucas1p1d125c5f55f171b1ca5e4e1d28a3ad4b1 X-RootMTR: 20161003081122eucas1p1d125c5f55f171b1ca5e4e1d28a3ad4b1 References: <20161003081049.GA12419@amd> <20161003093841.GA9131@amd> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1717 Lines: 47 On 10/03/2016 11:38 AM, Pavel Machek wrote: > Hi! > >> Thanks for the patch. >> >> On 10/03/2016 10:10 AM, Pavel Machek wrote: >>> >>> sysfs-class-led fails to mention some important details. Also fix led >>> vs LED and english. >>> >>> Signed-off-by: Pavel Machek >>> >>> --- a/Documentation/ABI/testing/sysfs-class-led >>> +++ b/Documentation/ABI/testing/sysfs-class-led >>> @@ -4,16 +4,25 @@ KernelVersion: 2.6.17 >>> Contact: Richard Purdie >>> Description: >>> Set the brightness of the LED. Most LEDs don't >>> - have hardware brightness support so will just be turned on for >>> + have hardware brightness support, so will just be turned on for >>> non-zero brightness settings. The value is between 0 and >>> /sys/class/leds//max_brightness. >>> >>> + Writing 0 to this file clears active trigger. >>> + >>> + Writing non-zero to this file while trigger is active changes the >>> + top brightness trigger is going to use. >> >> This is true only in case of timer trigger, as it uses blink_brightness >> property from struct led_classdev to cache current brightness, when the >> the LED is in the off cycle. This is part of software blink fallback >> functionality. >> >> In case of heartbeat trigger max_brightness is always used for top level >> brightness. We'd need to refactor the trigger a bit to allow for >> different top brightness levels. > > Ok, do you think you could update the documenation to match the > reality? It is quite important to know what is the intended behaviour > and what are the bugs. I'd prefer to improve the trigger. I'll try to do that in the coming days, and apply your patch afterwards. -- Best regards, Jacek Anaszewski