[ibm-acpi-devel] [PATCH v2] thinkpad_acpi: support new BIOS version string pattern

2015-02-10 Thread Adam Lee
Latest ThinkPad models use a new string pattern of BIOS version, thinkpad_acpi won't be loaded automatically without this fix. Signed-off-by: Adam Lee --- drivers/platform/x86/thinkpad_acpi.c | 26 -- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/dr

Re: [ibm-acpi-devel] [PATCH] thinkpad_acpi: support new BIOS version string pattern

2015-02-10 Thread Adam Lee
ce here (compared to above) > is an additional leading digit and the subsequent string indices? > > Seems to me this could be done fairly easily in the same block with only a > minor > adjustment at the beginning and the use of an incrementing index. Should be > cleaner than

[ibm-acpi-devel] [PATCH] thinkpad_acpi: support new BIOS version string pattern

2015-02-04 Thread Adam Lee
Latest ThinkPad models use a new string pattern of BIOS version, thinkpad_acpi won't be loaded automatically without this fix. Signed-off-by: Adam Lee --- drivers/platform/x86/thinkpad_acpi.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/dr

Re: [ibm-acpi-devel] [PATCH 3/3] thinkpad_acpi: add LED quirks of models which don't have EC controllable LEDs

2013-06-20 Thread Adam Lee
e LEDs", I will drop [PATCH 3/3] to discussion again when I got the documentation. -- Regards, Adam Lee Hardware Enablement -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/window

[ibm-acpi-devel] [PATCH 3/3] thinkpad_acpi: add LED quirks of models which don't have EC controllable LEDs

2013-06-20 Thread Adam Lee
Some new Lenovo or ThinkPad laptops don't have EC controllable LEDs. This patch adds their quirks. Signed-off-by: Adam Lee --- drivers/platform/x86/thinkpad_acpi.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platfor

[ibm-acpi-devel] [PATCH 2/3] thinkpad_acpi: add the ability setting TPACPI_LED_NONE by quirk

2013-06-20 Thread Adam Lee
Some new Lenovo or ThinkPad laptops don't have EC controllable LEDs, their LED quirks are 0. This patch set led_supported=TPACPI_LED_NONE when quirk equals 0. Signed-off-by: Adam Lee --- drivers/platform/x86/thinkpad_acpi.c | 13 ++--- 1 file changed, 10 insertions(+), 3 dele

[ibm-acpi-devel] [PATCH 0/3] thinkpad_acpi: avoid ACPI Warning while operating non-exist LEDs

2013-06-20 Thread Adam Lee
Some new Lenovo or ThinkPad laptops don't have EC controllable LEDs, they control LEDs by BIOS functions, and return ACPI Warning while operating LEDs by EC. These patches set some quirks, optimize led_init() and led_write() to avoid that warning. Adam Lee (3): thinkpad_acpi: return -

Re: [ibm-acpi-devel] [PATCH 3/3] thinkpad_acpi: add LED quirks of models which don't have EC controllable LEDs

2013-06-20 Thread Adam Lee
On Fri, Jun 07, 2013 at 01:22:39PM +, Matthew Garrett wrote: > On Fri, 2013-06-07 at 16:20 +0800, Adam Lee wrote: > > Some new Lenovo or ThinkPad laptops don't have EC controllable LEDs. > > This patch adds their quirks. > > Can you detect this case? If this is a ne

Re: [ibm-acpi-devel] [PATCH 1/3] thinkpad_acpi: return -NODEV while operating uninitialized LEDs

2013-06-20 Thread Adam Lee
On Fri, Jun 07, 2013 at 10:53:50AM +0200, Bjørn Mork wrote: > Adam Lee writes: > > > --- a/drivers/platform/x86/thinkpad_acpi.c > > +++ b/drivers/platform/x86/thinkpad_acpi.c > > @@ -5401,9 +5401,12 @@ static int led_write(char *buf) > > return -ENO

[ibm-acpi-devel] [PATCH v2] thinkpad_acpi: return -NODEV while operating uninitialized LEDs

2013-06-20 Thread Adam Lee
Not all 0-15 LEDs are available for all models, sometimes it's even not safe. This patch return -NODEV while operating uninitialized LEDs. Signed-off-by: Adam Lee --- drivers/platform/x86/thinkpad_acpi.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/pla

[ibm-acpi-devel] [PATCH 1/3] thinkpad_acpi: return -NODEV while operating uninitialized LEDs

2013-06-20 Thread Adam Lee
Not all 0-15 LEDs are available for all models, sometimes it's even not safe. This patch return -NODEV while operating uninitialized LEDs. Signed-off-by: Adam Lee --- drivers/platform/x86/thinkpad_acpi.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/pla

[ibm-acpi-devel] [PATCH 1/3 v3] thinkpad_acpi: return -NODEV while operating uninitialized LEDs

2013-06-20 Thread Adam Lee
Not all 0-15 LEDs are available for all models, sometimes it's even not safe. This patch return -NODEV while operating uninitialized LEDs. Signed-off-by: Adam Lee --- drivers/platform/x86/thinkpad_acpi.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dr