Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-15 Thread Linus Walleij
On Tue, Nov 13, 2018 at 8:55 PM Jacek Anaszewski wrote: > LED core has had a protection > against name clash since the commit: > > commit a96aa64cb5723d941de879a9cd1fea025d6acb1b > Author: Ricardo Ribalda Delgado > Date: Mon Mar 30 10:45:59 2015 -0700 > > leds/led-class: Handle LEDs with

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-15 Thread Linus Walleij
On Tue, Nov 13, 2018 at 8:55 PM Jacek Anaszewski wrote: > LED core has had a protection > against name clash since the commit: > > commit a96aa64cb5723d941de879a9cd1fea025d6acb1b > Author: Ricardo Ribalda Delgado > Date: Mon Mar 30 10:45:59 2015 -0700 > > leds/led-class: Handle LEDs with

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-13 Thread Pavel Machek
On Tue 2018-11-13 22:38:49, Geert Uytterhoeven wrote: > Hi Pavel, > > On Mon, Nov 12, 2018 at 11:07 PM Pavel Machek wrote: > > Not really, I'm afraid. Hard drives have no red LEDs on them (and the > > LED would not be visible, anyway) so the "device" symlink in such case > > would point to some

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-13 Thread Pavel Machek
On Tue 2018-11-13 22:38:49, Geert Uytterhoeven wrote: > Hi Pavel, > > On Mon, Nov 12, 2018 at 11:07 PM Pavel Machek wrote: > > Not really, I'm afraid. Hard drives have no red LEDs on them (and the > > LED would not be visible, anyway) so the "device" symlink in such case > > would point to some

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-13 Thread Geert Uytterhoeven
Hi Pavel, On Mon, Nov 12, 2018 at 11:07 PM Pavel Machek wrote: > Not really, I'm afraid. Hard drives have no red LEDs on them (and the > LED would not be visible, anyway) so the "device" symlink in such case > would point to some kind of i2c LED controller. I've seen hard drives with LEDs on

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-13 Thread Geert Uytterhoeven
Hi Pavel, On Mon, Nov 12, 2018 at 11:07 PM Pavel Machek wrote: > Not really, I'm afraid. Hard drives have no red LEDs on them (and the > LED would not be visible, anyway) so the "device" symlink in such case > would point to some kind of i2c LED controller. I've seen hard drives with LEDs on

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-13 Thread Jacek Anaszewski
On 11/12/2018 11:06 PM, Pavel Machek wrote: > On Mon 2018-11-12 21:11:32, Jacek Anaszewski wrote: >> On 11/12/2018 08:05 PM, Pavel Machek wrote: >>> Hi! >>> >>> My system looks like this: >>> >>> input16::capslocktpacpi::bay_activetpacpi::standby >>> input16::numlock

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-13 Thread Jacek Anaszewski
On 11/12/2018 11:06 PM, Pavel Machek wrote: > On Mon 2018-11-12 21:11:32, Jacek Anaszewski wrote: >> On 11/12/2018 08:05 PM, Pavel Machek wrote: >>> Hi! >>> >>> My system looks like this: >>> >>> input16::capslocktpacpi::bay_activetpacpi::standby >>> input16::numlock

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-13 Thread Jacek Anaszewski
On 11/12/2018 10:23 PM, Linus Walleij wrote: > On Sun, Nov 11, 2018 at 1:03 PM Pavel Machek wrote: > >>> -"devicename:colour:function" >>> +"colour:function" >> >> I don't think we want to do it in all cases. >> >> So, on my cellphone seeing lp5523:green:led is indeed not useful. >> >> But on

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-13 Thread Jacek Anaszewski
On 11/12/2018 10:23 PM, Linus Walleij wrote: > On Sun, Nov 11, 2018 at 1:03 PM Pavel Machek wrote: > >>> -"devicename:colour:function" >>> +"colour:function" >> >> I don't think we want to do it in all cases. >> >> So, on my cellphone seeing lp5523:green:led is indeed not useful. >> >> But on

LEDs on USB keyboards was Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-12 Thread Pavel Machek
Hi! > > Couldn't we have here multiple variants that would then be chosen based > > on device tree definition? > > It needs to be subsystem specific or something. > What you say make sense for things based on device > tree. > > The problem hit me on an Intel laptop with several > USB keyboards.

LEDs on USB keyboards was Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-12 Thread Pavel Machek
Hi! > > Couldn't we have here multiple variants that would then be chosen based > > on device tree definition? > > It needs to be subsystem specific or something. > What you say make sense for things based on device > tree. > > The problem hit me on an Intel laptop with several > USB keyboards.

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-12 Thread Pavel Machek
On Mon 2018-11-12 21:11:32, Jacek Anaszewski wrote: > On 11/12/2018 08:05 PM, Pavel Machek wrote: > > Hi! > > > > My system looks like this: > > > > input16::capslocktpacpi::bay_activetpacpi::standby > > input16::numlock tpacpi::dock_active tpacpi::thinklight > >

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-12 Thread Pavel Machek
On Mon 2018-11-12 21:11:32, Jacek Anaszewski wrote: > On 11/12/2018 08:05 PM, Pavel Machek wrote: > > Hi! > > > > My system looks like this: > > > > input16::capslocktpacpi::bay_activetpacpi::standby > > input16::numlock tpacpi::dock_active tpacpi::thinklight > >

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-12 Thread Linus Walleij
On Mon, Nov 12, 2018 at 1:02 AM Vesa Jääskeläinen wrote: > Couldn't we have here multiple variants that would then be chosen based > on device tree definition? It needs to be subsystem specific or something. What you say make sense for things based on device tree. The problem hit me on an

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-12 Thread Linus Walleij
On Mon, Nov 12, 2018 at 1:02 AM Vesa Jääskeläinen wrote: > Couldn't we have here multiple variants that would then be chosen based > on device tree definition? It needs to be subsystem specific or something. What you say make sense for things based on device tree. The problem hit me on an

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-12 Thread Linus Walleij
On Sun, Nov 11, 2018 at 1:03 PM Pavel Machek wrote: > > -"devicename:colour:function" > > +"colour:function" > > I don't think we want to do it in all cases. > > So, on my cellphone seeing lp5523:green:led is indeed not useful. > > But on notebook with usb keyboard attached, you need to keep the

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-12 Thread Linus Walleij
On Sun, Nov 11, 2018 at 1:03 PM Pavel Machek wrote: > > -"devicename:colour:function" > > +"colour:function" > > I don't think we want to do it in all cases. > > So, on my cellphone seeing lp5523:green:led is indeed not useful. > > But on notebook with usb keyboard attached, you need to keep the

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-12 Thread Jacek Anaszewski
On 11/12/2018 08:05 PM, Pavel Machek wrote: > Hi! > > My system looks like this: > > input16::capslocktpacpi::bay_activetpacpi::standby > input16::numlock tpacpi::dock_active tpacpi::thinklight > input16::scrolllock tpacpi::dock_batt

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-12 Thread Jacek Anaszewski
On 11/12/2018 08:05 PM, Pavel Machek wrote: > Hi! > > My system looks like this: > > input16::capslocktpacpi::bay_activetpacpi::standby > input16::numlock tpacpi::dock_active tpacpi::thinklight > input16::scrolllock tpacpi::dock_batt

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-12 Thread Pavel Machek
Hi! > >>> My system looks like this: > >>> > >>> input16::capslocktpacpi::bay_activetpacpi::standby > >>> input16::numlock tpacpi::dock_active tpacpi::thinklight > >>> input16::scrolllock tpacpi::dock_batt tpacpi::thinkvantage > >>> input5::capslock

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-12 Thread Pavel Machek
Hi! > >>> My system looks like this: > >>> > >>> input16::capslocktpacpi::bay_activetpacpi::standby > >>> input16::numlock tpacpi::dock_active tpacpi::thinklight > >>> input16::scrolllock tpacpi::dock_batt tpacpi::thinkvantage > >>> input5::capslock

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-12 Thread Jacek Anaszewski
Hi, On 11/12/2018 11:35 AM, Pavel Machek wrote: > Hi! > It's overcomplicating the naming again. In every case you can tweak the function name to eth0_link, eth1_link etc. >>> >>> Well, but in such case it would be good to keep existing scheme. >>> >>> My system looks like this: >>> >>>

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-12 Thread Jacek Anaszewski
Hi, On 11/12/2018 11:35 AM, Pavel Machek wrote: > Hi! > It's overcomplicating the naming again. In every case you can tweak the function name to eth0_link, eth1_link etc. >>> >>> Well, but in such case it would be good to keep existing scheme. >>> >>> My system looks like this: >>> >>>

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-12 Thread Jacek Anaszewski
On 11/12/2018 01:01 AM, Vesa Jääskeläinen wrote: > Hi, > > On 11/11/2018 23.14, Jacek Anaszewski wrote: >> On 11/11/2018 09:16 PM, Pavel Machek wrote: >>> Hi! >>> >> diff --git a/Documentation/leds/leds-class.txt >> b/Documentation/leds/leds-class.txt >> index 836cb16..e9009c4 100644

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-12 Thread Jacek Anaszewski
On 11/12/2018 01:01 AM, Vesa Jääskeläinen wrote: > Hi, > > On 11/11/2018 23.14, Jacek Anaszewski wrote: >> On 11/11/2018 09:16 PM, Pavel Machek wrote: >>> Hi! >>> >> diff --git a/Documentation/leds/leds-class.txt >> b/Documentation/leds/leds-class.txt >> index 836cb16..e9009c4 100644

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-12 Thread Pavel Machek
Hi! > >> It's overcomplicating the naming again. In every case you can tweak > >> the function name to eth0_link, eth1_link etc. > > > > Well, but in such case it would be good to keep existing scheme. > > > > My system looks like this: > > > > input16::capslocktpacpi::bay_active

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-12 Thread Pavel Machek
Hi! > >> It's overcomplicating the naming again. In every case you can tweak > >> the function name to eth0_link, eth1_link etc. > > > > Well, but in such case it would be good to keep existing scheme. > > > > My system looks like this: > > > > input16::capslocktpacpi::bay_active

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-11 Thread Vesa Jääskeläinen
Hi, On 11/11/2018 23.14, Jacek Anaszewski wrote: On 11/11/2018 09:16 PM, Pavel Machek wrote: Hi! diff --git a/Documentation/leds/leds-class.txt b/Documentation/leds/leds-class.txt index 836cb16..e9009c4 100644 --- a/Documentation/leds/leds-class.txt +++ b/Documentation/leds/leds-class.txt

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-11 Thread Vesa Jääskeläinen
Hi, On 11/11/2018 23.14, Jacek Anaszewski wrote: On 11/11/2018 09:16 PM, Pavel Machek wrote: Hi! diff --git a/Documentation/leds/leds-class.txt b/Documentation/leds/leds-class.txt index 836cb16..e9009c4 100644 --- a/Documentation/leds/leds-class.txt +++ b/Documentation/leds/leds-class.txt

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-11 Thread Jacek Anaszewski
On 11/11/2018 09:16 PM, Pavel Machek wrote: > Hi! > diff --git a/Documentation/leds/leds-class.txt b/Documentation/leds/leds-class.txt index 836cb16..e9009c4 100644 --- a/Documentation/leds/leds-class.txt +++ b/Documentation/leds/leds-class.txt @@ -43,7 +43,7 @@ LED

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-11 Thread Jacek Anaszewski
On 11/11/2018 09:16 PM, Pavel Machek wrote: > Hi! > diff --git a/Documentation/leds/leds-class.txt b/Documentation/leds/leds-class.txt index 836cb16..e9009c4 100644 --- a/Documentation/leds/leds-class.txt +++ b/Documentation/leds/leds-class.txt @@ -43,7 +43,7 @@ LED

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-11 Thread Pavel Machek
Hi! > >> diff --git a/Documentation/leds/leds-class.txt > >> b/Documentation/leds/leds-class.txt > >> index 836cb16..e9009c4 100644 > >> --- a/Documentation/leds/leds-class.txt > >> +++ b/Documentation/leds/leds-class.txt > >> @@ -43,7 +43,7 @@ LED Device Naming > >> > >> Is currently of the

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-11 Thread Pavel Machek
Hi! > >> diff --git a/Documentation/leds/leds-class.txt > >> b/Documentation/leds/leds-class.txt > >> index 836cb16..e9009c4 100644 > >> --- a/Documentation/leds/leds-class.txt > >> +++ b/Documentation/leds/leds-class.txt > >> @@ -43,7 +43,7 @@ LED Device Naming > >> > >> Is currently of the

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-11 Thread Jacek Anaszewski
Hi Pavel, On 11/11/2018 01:02 PM, Pavel Machek wrote: > Hi! > >> Add public led_compose_name() API for composing LED class device >> name basing on fwnode_handle data. The function composes device name >> according to either a new pattern or the legacy >> pattern. The decision on using the >>

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-11 Thread Jacek Anaszewski
Hi Pavel, On 11/11/2018 01:02 PM, Pavel Machek wrote: > Hi! > >> Add public led_compose_name() API for composing LED class device >> name basing on fwnode_handle data. The function composes device name >> according to either a new pattern or the legacy >> pattern. The decision on using the >>

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-11 Thread Pavel Machek
Hi! > Add public led_compose_name() API for composing LED class device > name basing on fwnode_handle data. The function composes device name > according to either a new pattern or the legacy > pattern. The decision on using the > particular pattern is made basing on whether fwnode contains new

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-11 Thread Pavel Machek
Hi! > Add public led_compose_name() API for composing LED class device > name basing on fwnode_handle data. The function composes device name > according to either a new pattern or the legacy > pattern. The decision on using the > particular pattern is made basing on whether fwnode contains new

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-08 Thread Baolin Wang
Hi Jacek, On 9 November 2018 at 04:47, Jacek Anaszewski wrote: > Hi Baolin, > > Thanks for the review. > > On 11/07/2018 08:20 AM, Baolin Wang wrote: >> Hi Jacek, >> >> On 7 November 2018 at 06:07, Jacek Anaszewski >> wrote: >>> Add public led_compose_name() API for composing LED class device

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-08 Thread Baolin Wang
Hi Jacek, On 9 November 2018 at 04:47, Jacek Anaszewski wrote: > Hi Baolin, > > Thanks for the review. > > On 11/07/2018 08:20 AM, Baolin Wang wrote: >> Hi Jacek, >> >> On 7 November 2018 at 06:07, Jacek Anaszewski >> wrote: >>> Add public led_compose_name() API for composing LED class device

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-08 Thread Jacek Anaszewski
Dan, On 11/08/2018 07:06 PM, Dan Murphy wrote: > On 11/06/2018 04:07 PM, Jacek Anaszewski wrote: >> Add public led_compose_name() API for composing LED class device >> name basing on fwnode_handle data. The function composes device name >> according to either a new pattern or the legacy >>

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-08 Thread Jacek Anaszewski
Dan, On 11/08/2018 07:06 PM, Dan Murphy wrote: > On 11/06/2018 04:07 PM, Jacek Anaszewski wrote: >> Add public led_compose_name() API for composing LED class device >> name basing on fwnode_handle data. The function composes device name >> according to either a new pattern or the legacy >>

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-08 Thread Jacek Anaszewski
Hi Baolin, Thanks for the review. On 11/07/2018 08:20 AM, Baolin Wang wrote: > Hi Jacek, > > On 7 November 2018 at 06:07, Jacek Anaszewski > wrote: >> Add public led_compose_name() API for composing LED class device >> name basing on fwnode_handle data. The function composes device name >>

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-08 Thread Jacek Anaszewski
Hi Baolin, Thanks for the review. On 11/07/2018 08:20 AM, Baolin Wang wrote: > Hi Jacek, > > On 7 November 2018 at 06:07, Jacek Anaszewski > wrote: >> Add public led_compose_name() API for composing LED class device >> name basing on fwnode_handle data. The function composes device name >>

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-08 Thread Dan Murphy
On 11/06/2018 04:07 PM, Jacek Anaszewski wrote: > Add public led_compose_name() API for composing LED class device > name basing on fwnode_handle data. The function composes device name > according to either a new pattern or the legacy > pattern. The decision on using the > particular pattern is

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-08 Thread Dan Murphy
On 11/06/2018 04:07 PM, Jacek Anaszewski wrote: > Add public led_compose_name() API for composing LED class device > name basing on fwnode_handle data. The function composes device name > according to either a new pattern or the legacy > pattern. The decision on using the > particular pattern is

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-06 Thread Baolin Wang
Hi Jacek, On 7 November 2018 at 06:07, Jacek Anaszewski wrote: > Add public led_compose_name() API for composing LED class device > name basing on fwnode_handle data. The function composes device name > according to either a new pattern or the legacy > pattern. The decision on using the >

Re: [PATCH 02/24] leds: core: Add support for composing LED class device names

2018-11-06 Thread Baolin Wang
Hi Jacek, On 7 November 2018 at 06:07, Jacek Anaszewski wrote: > Add public led_compose_name() API for composing LED class device > name basing on fwnode_handle data. The function composes device name > according to either a new pattern or the legacy > pattern. The decision on using the >