From: Stephan Linz <linz@li-pro.net>
To: Jacek Anaszewski <j.anaszewski@samsung.com>
Cc: linux-leds@vger.kernel.org, linux-ide@vger.kernel.org,
"Joseph Jezak" <josejx@gentoo.org>,
"Jörg Sommer" <joerg@alea.gnuu.de>,
"Mark Rutland" <mark.rutland@arm.com>,
"Richard Purdie" <rpurdie@rpsys.net>,
"Rob Herring" <robh+dt@kernel.org>,
"Jonathan Corbet" <corbet@lwn.net>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-doc@vger.kernel.org
Subject: Re: [PATCH v5] leds: documentation: 'ide-disk' to 'disk-activity'
Date: Fri, 24 Jun 2016 19:18:52 +0200 [thread overview]
Message-ID: <576D6B7C.1050602@li-pro.net> (raw)
In-Reply-To: <576CD823.1080906@samsung.com>
[-- Attachment #1.1: Type: text/plain, Size: 5111 bytes --]
Hi Jacek,
thanks for your help. The new patch is on the way (v6).
br,
Stephan
Am 24.06.2016 um 08:50 schrieb Jacek Anaszewski:
> Hi Stephan,
>
> On 06/23/2016 09:38 PM, Stephan Linz wrote:
>> Cc: Joseph Jezak <josejx@gentoo.org>
>> Cc: Jörg Sommer <joerg@alea.gnuu.de>
>> Cc: Mark Rutland <mark.rutland@arm.com>
>> Signed-off-by: Stephan Linz <linz@li-pro.net>
>> Acked-by: Rob Herring <robh@kernel.org>
>> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
>> ---
>> Changes in v5:
>> - Keep documentation for the old 'ide-disk' device tree
>> binding, but mark as deprecated and refer to the new
>> trigger 'disk-activity'.
>>
>> Changes in v4:
>> - Keep the 'ide-disk' trigger and add a second one
>> for 'disk-activity'.
>>
>> Changes in v3:
>> - Port to kernel 4.x
>> - Split into platform independent and dependent parts.
>>
>> v2: https://patchwork.ozlabs.org/patch/117485/
>> v1: http://dev.gentoo.org/~josejx/ata.patch
>> ---
>> Documentation/devicetree/bindings/leds/common.txt | 5 ++++-
>> Documentation/devicetree/bindings/leds/leds-gpio.txt | 4 ++--
>> Documentation/laptops/asus-laptop.txt | 2 +-
>> Documentation/leds/leds-class.txt | 2 +-
>> 4 files changed, 8 insertions(+), 5 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/leds/common.txt
>> b/Documentation/devicetree/bindings/leds/common.txt
>> index af10678..1c32e31 100644
>> --- a/Documentation/devicetree/bindings/leds/common.txt
>> +++ b/Documentation/devicetree/bindings/leds/common.txt
>> @@ -25,8 +25,11 @@ Optional properties for child nodes:
>> system
>> "default-on" - LED will turn on (but for leds-gpio see
>> "default-state"
>> property in Documentation/devicetree/bindings/gpio/led.txt)
>> + "disk-activity" - LED indicates disk activity, the old name
>> "ide-disk" is
>> + still valid for backward compatibility
>> "heartbeat" - LED "double" flashes at a load average based rate
>> - "ide-disk" - LED indicates disk activity
>> + "ide-disk" - LED indicates IDE disk activity (deprecated), do
>> not use for
>> + new implementation, use the new "disk-activity"
>> name instead
>
> I'd like to reorganize this change.
>
> I think that the two affected properties should be placed next to
> each other. I'd also remove the remark about ide-disk at disk-activity,
> since we're leaving ide-disk, with added reference to disk-activity.
>
> How about following:
>
> + "disk-activity" - LED indicates disk activity
> - "ide-disk" - LED indicates disk activity
> + "ide-disk" - LED indicates IDE disk activity (deprecated),
> in new implementations use "disk-activity"
>
>> "timer" - LED flashes at a fixed, configurable rate
>>
>> - led-max-microamp : Maximum LED supply current in microamperes.
>> This property
>> diff --git a/Documentation/devicetree/bindings/leds/leds-gpio.txt
>> b/Documentation/devicetree/bindings/leds/leds-gpio.txt
>> index cbbeb18..5b1b43a 100644
>> --- a/Documentation/devicetree/bindings/leds/leds-gpio.txt
>> +++ b/Documentation/devicetree/bindings/leds/leds-gpio.txt
>> @@ -33,9 +33,9 @@ Examples:
>> leds {
>> compatible = "gpio-leds";
>> hdd {
>> - label = "IDE Activity";
>> + label = "Disk Activity";
>> gpios = <&mcu_pio 0 GPIO_ACTIVE_LOW>;
>> - linux,default-trigger = "ide-disk";
>> + linux,default-trigger = "disk-activity";
>> };
>>
>> fault {
>> diff --git a/Documentation/laptops/asus-laptop.txt
>> b/Documentation/laptops/asus-laptop.txt
>> index 79a1bc6..5f28587 100644
>> --- a/Documentation/laptops/asus-laptop.txt
>> +++ b/Documentation/laptops/asus-laptop.txt
>> @@ -72,7 +72,7 @@ LEDs
>> echo 1 > /sys/class/leds/asus::mail/brightness
>> will switch the mail LED on.
>> You can also know if they are on/off by reading their content and use
>> - kernel triggers like ide-disk or heartbeat.
>> + kernel triggers like disk-activity or heartbeat.
>>
>> Backlight
>> ---------
>> diff --git a/Documentation/leds/leds-class.txt
>> b/Documentation/leds/leds-class.txt
>> index 44f5e6b..f1f7ec9 100644
>> --- a/Documentation/leds/leds-class.txt
>> +++ b/Documentation/leds/leds-class.txt
>> @@ -11,7 +11,7 @@ brightness support so will just be turned on for
>> non-zero brightness settings.
>> The class also introduces the optional concept of an LED trigger. A
>> trigger
>> is a kernel based source of led events. Triggers can either be
>> simple or
>> complex. A simple trigger isn't configurable and is designed to slot
>> into
>> -existing subsystems with minimal additional code. Examples are the
>> ide-disk,
>> +existing subsystems with minimal additional code. Examples are the
>> disk-activity,
>> nand-disk and sharpsl-charge triggers. With led triggers disabled,
>> the code
>> optimises away.
>>
>>
>
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2016-06-24 17:19 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-08 22:29 [PATCH v3 1/7] leds: convert IDE trigger to common disk trigger Stephan Linz
2016-06-08 22:29 ` [PATCH v3 2/7] leds: documentation: 'ide-disk' to 'disk-activity' Stephan Linz
2016-06-21 15:05 ` Mark Rutland
2016-06-22 7:55 ` Jacek Anaszewski
2016-06-22 10:16 ` Mark Rutland
2016-06-22 16:05 ` Stephan Linz
2016-06-23 6:40 ` Jacek Anaszewski
2016-06-23 19:38 ` [PATCH v5] " Stephan Linz
2016-06-24 6:50 ` Jacek Anaszewski
2016-06-24 17:18 ` Stephan Linz [this message]
2016-06-08 22:29 ` [PATCH v3 3/7] powerpc: use the new LED disk activity trigger Stephan Linz
2016-06-08 22:29 ` [PATCH v3 4/7] arm: " Stephan Linz
2016-06-09 7:18 ` Gregory CLEMENT
2016-06-08 22:29 ` [PATCH v3 5/7] mips: " Stephan Linz
2016-06-08 22:29 ` [PATCH v3 6/7] parisc: " Stephan Linz
2016-06-08 22:29 ` [PATCH v3 7/7] unicore32: " Stephan Linz
2016-06-09 7:29 ` [PATCH v3 1/7] leds: convert IDE trigger to common disk trigger Jacek Anaszewski
2016-06-09 22:27 ` Stephan Linz
2016-06-20 8:36 ` Jacek Anaszewski
2016-06-20 21:28 ` Stephan Linz
2016-06-21 7:13 ` Jacek Anaszewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=576D6B7C.1050602@li-pro.net \
--to=linz@li-pro.net \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=j.anaszewski@samsung.com \
--cc=joerg@alea.gnuu.de \
--cc=josejx@gentoo.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=rpurdie@rpsys.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).