Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1427860 > unrolled thread
| Started by | Mark Rutland <mark.rutland@arm.com> |
|---|---|
| First post | 2016-06-21 17:10 +0200 |
| Last post | 2016-06-24 19:20 +0200 |
| Articles | 8 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v3 2/7] leds: documentation: 'ide-disk' to 'disk-activity' Mark Rutland <mark.rutland@arm.com> - 2016-06-21 17:10 +0200
Re: [PATCH v3 2/7] leds: documentation: 'ide-disk' to 'disk-activity' Jacek Anaszewski <j.anaszewski@samsung.com> - 2016-06-22 10:10 +0200
Re: [PATCH v3 2/7] leds: documentation: 'ide-disk' to 'disk-activity' Mark Rutland <mark.rutland@arm.com> - 2016-06-22 12:20 +0200
Re: [PATCH v3 2/7] leds: documentation: 'ide-disk' to 'disk-activity' Stephan Linz <linz@li-pro.net> - 2016-06-22 18:10 +0200
Re: [PATCH v3 2/7] leds: documentation: 'ide-disk' to 'disk-activity' Jacek Anaszewski <j.anaszewski@samsung.com> - 2016-06-23 08:50 +0200
[PATCH v5] leds: documentation: 'ide-disk' to 'disk-activity' Stephan Linz <linz@li-pro.net> - 2016-06-23 21:40 +0200
Re: [PATCH v5] leds: documentation: 'ide-disk' to 'disk-activity' Jacek Anaszewski <j.anaszewski@samsung.com> - 2016-06-24 09:00 +0200
Re: [PATCH v5] leds: documentation: 'ide-disk' to 'disk-activity' Stephan Linz <linz@li-pro.net> - 2016-06-24 19:20 +0200
| From | Mark Rutland <mark.rutland@arm.com> |
|---|---|
| Date | 2016-06-21 17:10 +0200 |
| Subject | Re: [PATCH v3 2/7] leds: documentation: 'ide-disk' to 'disk-activity' |
| Message-ID | <rMvtn-7tu-7@gated-at.bofh.it> |
On Thu, Jun 09, 2016 at 12:29:37AM +0200, Stephan Linz wrote: > Cc: Joseph Jezak <josejx@gentoo.org> > Cc: Nico Macrionitis <acrux@cruxppc.org> > Cc: Jörg Sommer <joerg@alea.gnuu.de> > Signed-off-by: Stephan Linz <linz@li-pro.net> > --- > Documentation/devicetree/bindings/leds/common.txt | 2 +- > Documentation/devicetree/bindings/leds/leds-gpio.txt | 2 +- > Documentation/laptops/asus-laptop.txt | 2 +- > Documentation/leds/leds-class.txt | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt > index af10678..1e97169 100644 > --- a/Documentation/devicetree/bindings/leds/common.txt > +++ b/Documentation/devicetree/bindings/leds/common.txt > @@ -26,7 +26,7 @@ Optional properties for child nodes: > "default-on" - LED will turn on (but for leds-gpio see "default-state" > property in Documentation/devicetree/bindings/gpio/led.txt) > "heartbeat" - LED "double" flashes at a load average based rate > - "ide-disk" - LED indicates disk activity > + "disk-activity" - LED indicates disk activity > "timer" - LED flashes at a fixed, configurable rate We should not break the binding. Code must continue to support "ide-disk", though we can mark it deprecated in the binding documentation, and update the in-kernel dts files to use "disk-activity". Thanks, Mark.
[toc] | [next] | [standalone]
| From | Jacek Anaszewski <j.anaszewski@samsung.com> |
|---|---|
| Date | 2016-06-22 10:10 +0200 |
| Message-ID | <rMLot-Tc-9@gated-at.bofh.it> |
| In reply to | #1427860 |
On 06/21/2016 05:05 PM, Mark Rutland wrote: > On Thu, Jun 09, 2016 at 12:29:37AM +0200, Stephan Linz wrote: >> Cc: Joseph Jezak <josejx@gentoo.org> >> Cc: Nico Macrionitis <acrux@cruxppc.org> >> Cc: Jörg Sommer <joerg@alea.gnuu.de> >> Signed-off-by: Stephan Linz <linz@li-pro.net> >> --- >> Documentation/devicetree/bindings/leds/common.txt | 2 +- >> Documentation/devicetree/bindings/leds/leds-gpio.txt | 2 +- >> Documentation/laptops/asus-laptop.txt | 2 +- >> Documentation/leds/leds-class.txt | 2 +- >> 4 files changed, 4 insertions(+), 4 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt >> index af10678..1e97169 100644 >> --- a/Documentation/devicetree/bindings/leds/common.txt >> +++ b/Documentation/devicetree/bindings/leds/common.txt >> @@ -26,7 +26,7 @@ Optional properties for child nodes: >> "default-on" - LED will turn on (but for leds-gpio see "default-state" >> property in Documentation/devicetree/bindings/gpio/led.txt) >> "heartbeat" - LED "double" flashes at a load average based rate >> - "ide-disk" - LED indicates disk activity >> + "disk-activity" - LED indicates disk activity >> "timer" - LED flashes at a fixed, configurable rate > > We should not break the binding. > > Code must continue to support "ide-disk", though we can mark it > deprecated in the binding documentation, and update the in-kernel dts > files to use "disk-activity". The code in the version 4 of the patchset supports also "ide-disk". Stephan, could you send a new version of this patch, with preserved "ide-disk" property, marked as deprecated? -- Best regards, Jacek Anaszewski
[toc] | [prev] | [next] | [standalone]
| From | Mark Rutland <mark.rutland@arm.com> |
|---|---|
| Date | 2016-06-22 12:20 +0200 |
| Message-ID | <rMNqi-25n-27@gated-at.bofh.it> |
| In reply to | #1428533 |
On Wed, Jun 22, 2016 at 09:55:43AM +0200, Jacek Anaszewski wrote: > On 06/21/2016 05:05 PM, Mark Rutland wrote: > >On Thu, Jun 09, 2016 at 12:29:37AM +0200, Stephan Linz wrote: > >>Cc: Joseph Jezak <josejx@gentoo.org> > >>Cc: Nico Macrionitis <acrux@cruxppc.org> > >>Cc: Jörg Sommer <joerg@alea.gnuu.de> > >>Signed-off-by: Stephan Linz <linz@li-pro.net> > >>--- > >> Documentation/devicetree/bindings/leds/common.txt | 2 +- > >> Documentation/devicetree/bindings/leds/leds-gpio.txt | 2 +- > >> Documentation/laptops/asus-laptop.txt | 2 +- > >> Documentation/leds/leds-class.txt | 2 +- > >> 4 files changed, 4 insertions(+), 4 deletions(-) > >> > >>diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt > >>index af10678..1e97169 100644 > >>--- a/Documentation/devicetree/bindings/leds/common.txt > >>+++ b/Documentation/devicetree/bindings/leds/common.txt > >>@@ -26,7 +26,7 @@ Optional properties for child nodes: > >> "default-on" - LED will turn on (but for leds-gpio see "default-state" > >> property in Documentation/devicetree/bindings/gpio/led.txt) > >> "heartbeat" - LED "double" flashes at a load average based rate > >>- "ide-disk" - LED indicates disk activity > >>+ "disk-activity" - LED indicates disk activity > >> "timer" - LED flashes at a fixed, configurable rate > > > >We should not break the binding. > > > >Code must continue to support "ide-disk", though we can mark it > >deprecated in the binding documentation, and update the in-kernel dts > >files to use "disk-activity". > > The code in the version 4 of the patchset supports also "ide-disk". Ah, sorry, I missed v4. > Stephan, could you send a new version of this patch, with preserved > "ide-disk" property, marked as deprecated? With that, feel free to add: Acked-by: Mark Rutland <mark.rutland@arm.com> Thanks, Mark.
[toc] | [prev] | [next] | [standalone]
| From | Stephan Linz <linz@li-pro.net> |
|---|---|
| Date | 2016-06-22 18:10 +0200 |
| Message-ID | <rMST0-5Fj-41@gated-at.bofh.it> |
| In reply to | #1428533 |
[Multipart message — attachments visible in raw view] — view raw
Hi Jacek, Am 22.06.2016 um 09:55 schrieb Jacek Anaszewski: > On 06/21/2016 05:05 PM, Mark Rutland wrote: >> On Thu, Jun 09, 2016 at 12:29:37AM +0200, Stephan Linz wrote: >>> Cc: Joseph Jezak <josejx@gentoo.org> >>> Cc: Nico Macrionitis <acrux@cruxppc.org> >>> Cc: Jörg Sommer <joerg@alea.gnuu.de> >>> Signed-off-by: Stephan Linz <linz@li-pro.net> >>> --- >>> Documentation/devicetree/bindings/leds/common.txt | 2 +- >>> Documentation/devicetree/bindings/leds/leds-gpio.txt | 2 +- >>> Documentation/laptops/asus-laptop.txt | 2 +- >>> Documentation/leds/leds-class.txt | 2 +- >>> 4 files changed, 4 insertions(+), 4 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/leds/common.txt >>> b/Documentation/devicetree/bindings/leds/common.txt >>> index af10678..1e97169 100644 >>> --- a/Documentation/devicetree/bindings/leds/common.txt >>> +++ b/Documentation/devicetree/bindings/leds/common.txt >>> @@ -26,7 +26,7 @@ Optional properties for child nodes: >>> "default-on" - LED will turn on (but for leds-gpio see >>> "default-state" >>> property in >>> Documentation/devicetree/bindings/gpio/led.txt) >>> "heartbeat" - LED "double" flashes at a load average based rate >>> - "ide-disk" - LED indicates disk activity >>> + "disk-activity" - LED indicates disk activity >>> "timer" - LED flashes at a fixed, configurable rate >> >> We should not break the binding. >> >> Code must continue to support "ide-disk", though we can mark it >> deprecated in the binding documentation, and update the in-kernel dts >> files to use "disk-activity". > > The code in the version 4 of the patchset supports also "ide-disk". > > Stephan, could you send a new version of this patch, with preserved > "ide-disk" property, marked as deprecated? Yes, I can. I'll submit a new v5 patch set. You can pick out then the right patch for the LED for-next branch, okay? br, Stephan >
[toc] | [prev] | [next] | [standalone]
| From | Jacek Anaszewski <j.anaszewski@samsung.com> |
|---|---|
| Date | 2016-06-23 08:50 +0200 |
| Message-ID | <rN6CB-6aT-3@gated-at.bofh.it> |
| In reply to | #1428937 |
On 06/22/2016 06:05 PM, Stephan Linz wrote: > Hi Jacek, > > Am 22.06.2016 um 09:55 schrieb Jacek Anaszewski: >> On 06/21/2016 05:05 PM, Mark Rutland wrote: >>> On Thu, Jun 09, 2016 at 12:29:37AM +0200, Stephan Linz wrote: >>>> Cc: Joseph Jezak <josejx@gentoo.org> >>>> Cc: Nico Macrionitis <acrux@cruxppc.org> >>>> Cc: Jörg Sommer <joerg@alea.gnuu.de> >>>> Signed-off-by: Stephan Linz <linz@li-pro.net> >>>> --- >>>> Documentation/devicetree/bindings/leds/common.txt | 2 +- >>>> Documentation/devicetree/bindings/leds/leds-gpio.txt | 2 +- >>>> Documentation/laptops/asus-laptop.txt | 2 +- >>>> Documentation/leds/leds-class.txt | 2 +- >>>> 4 files changed, 4 insertions(+), 4 deletions(-) >>>> >>>> diff --git a/Documentation/devicetree/bindings/leds/common.txt >>>> b/Documentation/devicetree/bindings/leds/common.txt >>>> index af10678..1e97169 100644 >>>> --- a/Documentation/devicetree/bindings/leds/common.txt >>>> +++ b/Documentation/devicetree/bindings/leds/common.txt >>>> @@ -26,7 +26,7 @@ Optional properties for child nodes: >>>> "default-on" - LED will turn on (but for leds-gpio see >>>> "default-state" >>>> property in >>>> Documentation/devicetree/bindings/gpio/led.txt) >>>> "heartbeat" - LED "double" flashes at a load average based rate >>>> - "ide-disk" - LED indicates disk activity >>>> + "disk-activity" - LED indicates disk activity >>>> "timer" - LED flashes at a fixed, configurable rate >>> >>> We should not break the binding. >>> >>> Code must continue to support "ide-disk", though we can mark it >>> deprecated in the binding documentation, and update the in-kernel dts >>> files to use "disk-activity". >> >> The code in the version 4 of the patchset supports also "ide-disk". >> >> Stephan, could you send a new version of this patch, with preserved >> "ide-disk" property, marked as deprecated? > > Yes, I can. I'll submit a new v5 patch set. You can pick out then the > right patch for the LED for-next branch, okay? You don't need to submit whole patch set, only the affected patch. -- Best regards, Jacek Anaszewski
[toc] | [prev] | [next] | [standalone]
| From | Stephan Linz <linz@li-pro.net> |
|---|---|
| Date | 2016-06-23 21:40 +0200 |
| Subject | [PATCH v5] leds: documentation: 'ide-disk' to 'disk-activity' |
| Message-ID | <rNiDM-6cT-27@gated-at.bofh.it> |
| In reply to | #1429505 |
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
"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.
--
2.9.0
[toc] | [prev] | [next] | [standalone]
| From | Jacek Anaszewski <j.anaszewski@samsung.com> |
|---|---|
| Date | 2016-06-24 09:00 +0200 |
| Subject | Re: [PATCH v5] leds: documentation: 'ide-disk' to 'disk-activity' |
| Message-ID | <rNtfP-4HG-19@gated-at.bofh.it> |
| In reply to | #1430098 |
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.
>
>
--
Best regards,
Jacek Anaszewski
[toc] | [prev] | [next] | [standalone]
| From | Stephan Linz <linz@li-pro.net> |
|---|---|
| Date | 2016-06-24 19:20 +0200 |
| Subject | Re: [PATCH v5] leds: documentation: 'ide-disk' to 'disk-activity' |
| Message-ID | <rNCVP-2zd-13@gated-at.bofh.it> |
| In reply to | #1430407 |
[Multipart message — attachments visible in raw view] — view raw
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.
>>
>>
>
>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web