Re: [PATCH 0/5] Laptop driver documentation changes for 2.6.25

2008-02-10 Thread Mattia Dongili
On Sat, Feb 09, 2008 at 04:12:57AM -0500, Len Brown wrote: On Friday 08 February 2008 20:49, Carlos Corbacho wrote: On Saturday 09 February 2008 01:31:57 Carlos Corbacho wrote: thinkpad-acpi - Move thinkpad-acpi.txt to Documentation/laptops This patch [2/5] doesn't seem to have

Re: sony-laptop on AR series

2008-01-27 Thread Mattia Dongili
On Sat, Jan 26, 2008 at 05:46:59PM +0200, eaglex wrote: Could you send the output of lspci and upload somewhere the DSDT (or send me provately as I'm not sure about the limits for postings to this list). lspci: http://pastebin.ca/873456 dsdt: http://pastebin.ca/873459 01:00.0 VGA

Re: sony-laptop on AR series

2008-01-27 Thread Mattia Dongili
On Sun, Jan 27, 2008 at 03:16:27PM +0200, eaglex wrote: ... For now all sony-laptop can do is enable the Fn keys, I'll add your model to the DMI list asap. Any chances of getting the rest of the controls working? (like turning on bluetooth and so on) well, not until somebody is able to

Re: sony-laptop on AR series

2008-01-25 Thread Mattia Dongili
On Wed, Jan 23, 2008 at 12:33:34PM +0200, eaglex wrote: Hello, Hi, I own a Sony Vaio VGN-AR41E and have gotten the Fn keys to report ACPI events by adding: -- paste - .ident = Sony Vaio AR Series, .callback = sony_nc_C_enable,

[PATCH 2/6] sony-laptop: Add Vaio N series to the special init sequence to enable Fn keys

2008-01-14 Thread Mattia Dongili
Also the recent Vaio N series need some more calls into the DSDT to enable reporting of FN key events to be delivered to the SNC device. Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git

[PATCH 0/6 try3] sony-laptop for 2.6.25

2008-01-14 Thread Mattia Dongili
Hi Len, here we go again, this time checkpatch clean. drivers/misc/sony-laptop.c | 501 +++-- include/linux/sonypi.h |2 2 files changed, 305 insertions(+), 198 deletions(-) -- mattia - To unsubscribe from this list: send the line unsubscribe

[PATCH 1/6] sony-laptop: printk more info in sony_pic_call[123]

2008-01-14 Thread Mattia Dongili
Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index b0f6803..0435b3d 100644 --- a/drivers/misc/sony-laptop.c +++ b/drivers/misc

[PATCH 6/6] sony-laptop: fix scancode decode

2008-01-14 Thread Mattia Dongili
compare against the sony_laptop specific event list index to decode the input scancode to send. Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony

[PATCH 4/6] sony-laptop: bump version to 0.6

2008-01-14 Thread Mattia Dongili
Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index a650f25..9869286 100644 --- a/drivers/misc/sony-laptop.c +++ b/drivers/misc/sony

[PATCH 3/6] sony-laptop: refactor model types

2008-01-14 Thread Mattia Dongili
Create mini drivers and allow callbacks for each model to be specified. Following patches will make use of this feature to handle specific cases instead of just executing code and hope not to break other models. Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c

[PATCH 5/6] sony-laptop: add Type4 model

2008-01-14 Thread Mattia Dongili
Recent Vaio models (UX, SZ and presumably TZ and others) add more events and a slightly different handling of Fn key events for additional hotkeys (s1, s2, zoom-in/out, etc.). Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c | 295

[PATCH] sony-laptop: printk more info in sony_pic_call[123]

2008-01-13 Thread Mattia Dongili
Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index b0f6803..4211ca7 100644 --- a/drivers/misc/sony-laptop.c +++ b/drivers/misc

[PATCH] sony-laptop: bump version to 0.6

2008-01-13 Thread Mattia Dongili
Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index 3d3843a..84430b4 100644 --- a/drivers/misc/sony-laptop.c +++ b/drivers/misc/sony

[PATCH] sony-laptop: refactor model types

2008-01-13 Thread Mattia Dongili
Create mini drivers and allow callbacks for each model to be specified. Following patches will make use of this feature to handle specific cases instead of just executing code and hope not to break other models. Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c

[PATCH] sony-laptop: add Type4 model

2008-01-13 Thread Mattia Dongili
Recent Vaio models (UX, SZ and presumably TZ and others) add more events and a slightly different handling of Fn key events for additional hotkeys (s1, s2, zoom-in/out, etc.). Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c | 284

[PATCH 0/6 try2] sony-laptop for 2.6.25

2008-01-12 Thread Mattia Dongili
Gah, numbered patches this time. As said these are just some updates for 2.6.25. I still have pending code for the HD accelerometer and still need to remove the acpi_bus_generate_genetlink_event call from the ISR. My spare time is not very much recently but we will get there. cheers ---

[PATCH 4/6] sony-laptop: bump version to 0.6

2008-01-12 Thread Mattia Dongili
Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index 3d3843a..84430b4 100644 --- a/drivers/misc/sony-laptop.c +++ b/drivers/misc/sony

[PATCH 6/6] sony-laptop: fix scancode decode

2008-01-12 Thread Mattia Dongili
compare against the sony_laptop specific event list index to decode the input scancode to send. Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony

[PATCH 3/6] sony-laptop: refactor model types

2008-01-12 Thread Mattia Dongili
Create mini drivers and allow callbacks for each model to be specified. Following patches will make use of this feature to handle specific cases instead of just executing code and hope not to break other models. Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c

[PATCH 1/6] sony-laptop: printk more info in sony_pic_call[123]

2008-01-12 Thread Mattia Dongili
Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index b0f6803..4211ca7 100644 --- a/drivers/misc/sony-laptop.c +++ b/drivers/misc

[PATCH 5/6] sony-laptop: add Type4 model

2008-01-12 Thread Mattia Dongili
Recent Vaio models (UX, SZ and presumably TZ and others) add more events and a slightly different handling of Fn key events for additional hotkeys (s1, s2, zoom-in/out, etc.). Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c | 284

[PATCH 2/6] sony-laptop: Add Vaio N series to the special init sequence to enable Fn keys

2008-01-12 Thread Mattia Dongili
Also the recent Vaio N series need some more calls into the DSDT to enable reporting of FN key events to be delivered to the SNC device. Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git

[PATCH 0/6] sony-laptop for 2.6.25

2008-01-12 Thread Mattia Dongili
Hi Len, finally had some time to update the sony-laptop driver. Apologies for not removing acpi_bus_generate_genetlink_event from the irq handler... but I didn't forget about that at least. drivers/misc/sony-laptop.c | 485 ++--- include/linux/sonypi.h

[PATCH] sony-laptop: Add Vaio N series to the special init sequence to enable Fn keys

2008-01-12 Thread Mattia Dongili
Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index 4211ca7..550f9d9 100644 --- a/drivers/misc/sony-laptop.c +++ b/drivers/misc

[PATCH] sony-laptop: fix scancode decode

2008-01-12 Thread Mattia Dongili
compare against the sony_laptop specific event list index to decode the input scancode to send. Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony

Re: [PATCH 1/2] Sonypi: use synchronize_irq instead of sycnronize_sched

2007-11-20 Thread Mattia Dongili
, so synchronize_irq() suits much better. Plus synchronize_sched() will not work for us in -rt kernels. Signed-off-by: Dmitry Torokhov [EMAIL PROTECTED] Acked-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/char/sonypi.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index

Re: [PATCH 2/2] Sonypi: fit input devices into sysfs tree

2007-11-20 Thread Mattia Dongili
On Wed, Oct 31, 2007 at 12:43:10AM -0400, Dmitry Torokhov wrote: Subject: Sonypi: fit input devices into sysfs tree From: Dmitry Torokhov [EMAIL PROTECTED] Properly set up parent on input devices registered by sonypi. Signed-off-by: Dmitry Torokhov [EMAIL PROTECTED] Acked-by: Mattia

Re: [PATCH] drivers/misc/sony-laptop.c: remove duplicated define

2007-11-10 Thread Mattia Dongili
On Fri, Nov 09, 2007 at 02:08:32PM +0100, Nicolas Kaiser wrote: Remove duplicated define. Signed-off-by: Nicolas Kaiser [EMAIL PROTECTED] Acked-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |1 - 1 file changed, 1 deletion(-) --- a/drivers/misc/sony

Re: [PATCH] sony-laptop/thinkpad-acpi: fix build error

2007-09-18 Thread Mattia Dongili
tristate Sony Laptop Extras depends on X86 ACPI select BACKLIGHT_CLASS_DEVICE + select INPUT ---help--- This mini-driver drives the SNC and SPIC devices present in the ACPI BIOS of the Sony Vaio laptops. Acked-by: Mattia Dongili [EMAIL PROTECTED] Thanks

Re: [PATCH] sony-laptop/thinkpad-acpi: fix build error

2007-09-18 Thread Mattia Dongili
On Tue, Sep 18, 2007 at 12:49:14PM -0400, Len Brown wrote: On Monday 17 September 2007 16:54, Andreas Herrmann wrote: sony-laptop and thinkpad-acpi make use of input-core functions. Hence you get link errors if those drivers are built but CONFIG_INPUT is not set. Attached patch fixes this

Re: [PATCH] [-mm] ACPI: use GFP_KERNEL instead of GFP_ATOMIC

2007-08-16 Thread Mattia Dongili
On Thu, Aug 16, 2007 at 12:06:18PM +0800, Zhang Rui wrote: On Thu, 2007-08-16 at 11:36 +0800, Len Brown wrote: On Tuesday 31 July 2007 19:00, Zhang Rui wrote: Use GFP_KERNEL instead of GFP_ATOMIC. GFP_ATOMIC is still needed by the sonypi and sony-laptop driver. Why? Sony can't

[PATCH 1/3] sony-laptop: enable Vaio FZ events

2007-08-12 Thread Mattia Dongili
Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index 99f48c7..7e621c6 100644 --- a/drivers/misc/sony-laptop.c +++ b/drivers/misc

[PATCH 2/3] sony-laptop: call sonypi_compat_init earlier

2007-08-12 Thread Mattia Dongili
sonypi_compat uses a kfifo that needs to be present before _SRS is called to be able to cope with the IRQs triggered when setting resources. Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c | 15 +-- 1 files changed, 9 insertions(+), 6 deletions

Re: [PATCH 1/2] sony-laptop: enable vaio FZ events

2007-08-11 Thread Mattia Dongili
On Sat, Aug 11, 2007 at 10:43:06AM +0900, Mattia Dongili wrote: Signed-off-by: Mattia Dongili [EMAIL PROTECTED] ... .matches = { DMI_MATCH(DMI_SYS_VENDOR, Sony Corporation), DMI_MATCH(DMI_PRODUCT_NAME, VGN-FE

Re: [PATCH 2/2] sony-laptop: old Vaio models contain 2 IO port entries

2007-08-11 Thread Mattia Dongili
On Sat, Aug 11, 2007 at 11:27:44PM -0400, Len Brown wrote: On Friday 10 August 2007 21:43, Mattia Dongili wrote: Make the driver aware of this case and manage the existence of a second separate IO port. Fixes http://bugzilla.kernel.org/show_bug.cgi?id=8803 Why is this marked

[PATCH 0/2] sony-laptop for 2.6.23-rc3

2007-08-10 Thread Mattia Dongili
Hi Len, two more patches for sony-laptop. Please take a look at the second one (a bit more invasive): it fixes a regression (http://bugzilla.kernel.org/show_bug.cgi?id=8803) and doesn't break on my laptops, anyway better look for anything obvious that I may have missed. ---

[PATCH 2/2] sony-laptop: old Vaio models contain 2 IO port entries

2007-08-10 Thread Mattia Dongili
Make the driver aware of this case and manage the existence of a second separate IO port. Fixes http://bugzilla.kernel.org/show_bug.cgi?id=8803 Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c | 204 1 files changed, 148

[PATCH 1/2] sony-laptop: enable vaio FZ events

2007-08-10 Thread Mattia Dongili
Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index 99f48c7..1fd84a5 100644 --- a/drivers/misc/sony-laptop.c +++ b/drivers/misc

[PATCH 2/3] sony-laptop: sony_nc_ids[] can become static.

2007-08-03 Thread Mattia Dongili
From: Adrian Bunk [EMAIL PROTECTED] Signed-off-by: Adrian Bunk [EMAIL PROTECTED] Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index

[PATCH 1/3] sony-laptop: restore the last user requested brightness level on resume.

2007-08-03 Thread Mattia Dongili
Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index 303e48c..a1be82e 100644 --- a/drivers/misc/sony-laptop.c +++ b/drivers/misc

[PATCH 0/3] sony-laptop and sonypi for 2.6.23-rc2

2007-08-03 Thread Mattia Dongili
Hi Len, these 3 patches are aimed at 2.6.23-rc2 if there is time enough. There's only http://bugzilla.kernel.org/show_bug.cgi?id=8803 left, I hope to be able to have it sorted out soon. Please apply --- drivers/char/sonypi.c |8 ++-- drivers/misc/sony-laptop.c |9 ++--- 2

Re: [patch 2.6.21-rc5-git 2/3] ACPI driver model flags and platform_enable_wake()

2007-07-26 Thread Mattia Dongili
-haven't-merged queue has had this at the very top for quite a few months now... As I recall, Mattia Dongili [EMAIL PROTECTED] reported an error with a Vaio laptop; it would wake immediately after entering STR. It didn't reproduce for anyone else. But that was eventually tracked down to a bug

Re: [PATCH 5/7] Make the driver use MSC_SCAN and a setkeycode and getkeycode key table.

2007-07-19 Thread Mattia Dongili
On Wed, Jul 18, 2007 at 03:28:01PM +0100, Matthew Garrett wrote: On Wed, Jul 18, 2007 at 08:45:19PM +0900, Mattia Dongili wrote: On Tue, Jul 17, 2007 at 11:37:33AM +0100, Richard Hughes wrote: On Mon, 2007-07-16 at 19:09 +0100, Matthew Garrett wrote: That's fine, we have information

Re: [PATCH 5/7] Make the driver use MSC_SCAN and a setkeycode and getkeycode key table.

2007-07-18 Thread Mattia Dongili
On Mon, Jul 16, 2007 at 09:22:28AM -0400, Dmitry Torokhov wrote: Hi Mattia, On 7/15/07, Mattia Dongili [EMAIL PROTECTED] wrote: +static int sony_laptop_input_keycode_map[] = { + KEY_RESERVED,/* no event... */ + KEY_RESERVED, /* SONYPI_EVENT_JOGDIAL_DOWN

Re: [PATCH 5/7] Make the driver use MSC_SCAN and a setkeycode and getkeycode key table.

2007-07-18 Thread Mattia Dongili
On Tue, Jul 17, 2007 at 11:37:33AM +0100, Richard Hughes wrote: On Mon, 2007-07-16 at 19:09 +0100, Matthew Garrett wrote: That's fine, we have information that lets us distinguish between models. Well, I don't think we have all, at least I don't and anyway it's nice to have some way to

Re: [PATCH 5/7] Make the driver use MSC_SCAN and a setkeycode and getkeycode key table.

2007-07-18 Thread Mattia Dongili
On Mon, Jul 16, 2007 at 09:22:28AM -0400, Dmitry Torokhov wrote: Hi Mattia, On 7/15/07, Mattia Dongili [EMAIL PROTECTED] wrote: +static int sony_laptop_input_keycode_map[] = { + KEY_RESERVED,/* no event... */ + KEY_RESERVED, /* SONYPI_EVENT_JOGDIAL_DOWN

[PATCH 0/7] sony-laptop for 2.6.23 (updated)

2007-07-15 Thread Mattia Dongili
Hi Len, These patches a targeted to 2.6.23. I updated the previous series with a couple more patches one of which fixes a bug present in 2.6.22 and that I'll push to the stable maintainers. Important changes include the scancode enabling work done by Richard Hughes and support for some recent

[PATCH 2/7] sony-laptop: map wireless switch events to KEY_WLAN

2007-07-15 Thread Mattia Dongili
Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index 2063de7..9e27616 100644 --- a/drivers/misc/sony-laptop.c +++ b/drivers/misc/sony

[PATCH 3/7] Add support for recent Vaios Fn keys (C series for now)

2007-07-15 Thread Mattia Dongili
-specific key code to generic sony-laptop code have been added. Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c | 107 ++- 1 files changed, 104 insertions(+), 3 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers

[PATCH 6/7] Add Vaio FE to the special init sequence

2007-07-15 Thread Mattia Dongili
The Vaio FE series uses the same sequence as Vaio C series Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index 916b477

[PATCH 7/7] Fix event reading in sony-laptop

2007-07-15 Thread Mattia Dongili
The rewritten event reading code from sonypi was absolutely wrong, this patche makes things functional for type2 and type1 models. Cc: Andrei Paskevich [EMAIL PROTECTED] Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c | 30 ++ 1 files

[PATCH 1/7] sony-laptop: add new SNC handlers

2007-07-15 Thread Mattia Dongili
- lid state: GLID - indicator lamp: GILS/SILS - multimedia bass gain: GMGB/CMGB Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony

[PATCH 4/7] Invoke _INI for SNC devices that provide it

2007-07-15 Thread Mattia Dongili
Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c | 20 +++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index ecac39b..4b15f0c 100644 --- a/drivers/misc/sony-laptop.c +++ b

[PATCH 5/7] Make the driver use MSC_SCAN and a setkeycode and getkeycode key table.

2007-07-15 Thread Mattia Dongili
From: Richard Hughes [EMAIL PROTECTED] Cc: Dmitry Torokhov [EMAIL PROTECTED] Signed-off-by: Richard Hughes [EMAIL PROTECTED] Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c | 134 +++ 1 files changed, 84 insertions(+), 50

[PATCH 0/5] sony-laptop for 2.6.23

2007-07-10 Thread Mattia Dongili
Hi Len. The following patches a targeted to 2.6.23. Important changes include the scancode enabling work done by Richard Hughes and support for some recent vaio models. More of them may be added later once I get answers from users who I asked to run some tests. Please apply. Many thanks ---

[PATCH 3/5] Add support for recent Vaios Fn keys (C series for now)

2007-07-10 Thread Mattia Dongili
-specific key code to generic sony-laptop code have been added. Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c | 107 ++- 1 files changed, 104 insertions(+), 3 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers

[PATCH 2/5] sony-laptop: map wireless switch events to KEY_WLAN

2007-07-10 Thread Mattia Dongili
Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index 0f378fe..142d660 100644 --- a/drivers/misc/sony-laptop.c +++ b/drivers/misc/sony

[PATCH 1/5] sony-laptop: add new SNC handlers

2007-07-10 Thread Mattia Dongili
- lid state: GLID - indicator lamp: GILS/SILS - multimedia bass gain: GMGB/CMGB Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony

[PATCH 4/5] Invoke _INI for SNC devices that provide it

2007-07-10 Thread Mattia Dongili
Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c | 20 +++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index 43315be..5300cad 100644 --- a/drivers/misc/sony-laptop.c +++ b

[PATCH 5/5] Make the driver use MSC_SCAN and a setkeycode and getkeycode key table.

2007-07-10 Thread Mattia Dongili
From: Richard Hughes [EMAIL PROTECTED] Cc: Dmitry Torokhov [EMAIL PROTECTED] Signed-off-by: Richard Hughes [EMAIL PROTECTED] Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/misc/sony-laptop.c | 134 +++ 1 files changed, 84 insertions(+), 50

Re: [PATCH 3/3] ACPI autoloading - Create __mod_acpi_device_table symbol for all acpi drivers.

2007-07-04 Thread Mattia Dongili
On Tue, Jul 03, 2007 at 03:15:33AM -0400, Len Brown wrote: BTW: I also saw a laptop (IIRC it was a sony) with asus and sony ACPI device. When both drivers got loaded things broke. A solution was to only let the asus driver get active if the device is known. Currently, not sure whether

Re: [linux-pm] Re: [2.6.22-rc1-mm1] vaio laptop (SZ72B) immediately resumes after STR

2007-06-22 Thread Mattia Dongili
On Thu, Jun 21, 2007 at 11:45:36AM -0400, Alan Stern wrote: On Thu, 21 Jun 2007, Mattia Dongili wrote: The log shows suspicious behavior on the part of the Sony UMH-U09 device, the first one in your ehci-only list above. When it was suspended it apparently disconnected itself from

Re: [linux-pm] Re: [2.6.22-rc1-mm1] vaio laptop (SZ72B) immediately resumes after STR

2007-06-21 Thread Mattia Dongili
On Thu, Jun 21, 2007 at 03:28:46PM +0800, Zhang Rui wrote: On Thu, 2007-06-21 at 15:42 +0900, Mattia Dongili wrote: On Wed, Jun 20, 2007 at 12:33:04PM -0400, Alan Stern wrote: On Wed, 20 Jun 2007, Mattia Dongili wrote: Just as with Raphael, I suggest you build a kernel

Re: [PATCH 2/3] ACPI autoloading - Create acpi alias interface

2007-06-20 Thread Mattia Dongili
On Sun, Jun 17, 2007 at 10:27:27PM +0200, Thomas Renninger wrote: Create acpi alias interface ... Index: linux-2.6.22-rc4/drivers/pnp/pnpacpi/core.c === --- linux-2.6.22-rc4.orig/drivers/pnp/pnpacpi/core.c +++

Re: [PATCH 3/3] ACPI autoloading - Create __mod_acpi_device_table symbol for all acpi drivers.

2007-06-20 Thread Mattia Dongili
On Sun, Jun 17, 2007 at 10:24:23PM +0200, Thomas Renninger wrote: Create __mod_acpi_device_table symbol for all acpi drivers. modpost is going to use this one to create modules.alias Hopefully thinkpad module still works. IMO this one should get restructured and make use of

Re: [PATCH 3/3] ACPI autoloading - Create __mod_acpi_device_table symbol for all acpi drivers.

2007-06-20 Thread Mattia Dongili
On Wed, Jun 20, 2007 at 07:47:23PM +0200, Thomas Renninger wrote: On Thu, 2007-06-21 at 02:06 +0900, Mattia Dongili wrote: On Sun, Jun 17, 2007 at 10:24:23PM +0200, Thomas Renninger wrote: ... +static const struct acpi_device_id sony_device_ids[] = { + {SONY_NC_HID, 0}, + {SONY_PIC_HID

Re: [2.6.22-rc1-mm1] vaio laptop (SZ72B) immediately resumes after STR

2007-06-19 Thread Mattia Dongili
On Tue, Jun 19, 2007 at 04:57:55PM +0800, Zhang Rui wrote: On Sun, 2007-05-20 at 15:14 +0900, Mattia Dongili wrote: On Sat, May 19, 2007 at 12:04:13AM -0700, Andrew Morton wrote: On Sat, 19 May 2007 15:48:29 +0900 Mattia Dongili [EMAIL PROTECTED] wrote: On Fri, May 18, 2007 at 12

Re: [2.6.22-rc1-mm1] vaio laptop (SZ72B) immediately resumes after STR

2007-06-19 Thread Mattia Dongili
On Tue, Jun 19, 2007 at 04:57:55PM +0800, Zhang Rui wrote: ... I tested this patch on several platforms but can not reproduce the bug. Could you please help me do a simple test please? Any kernel release later than 2.6.22-rc1 is ok. You don't need to apply

Re: [PATCH 3/3] ACPI autoloading - Create __mod_acpi_device_table symbol for all acpi drivers.

2007-06-19 Thread Mattia Dongili
On Tue, Jun 19, 2007 at 02:53:27PM +0200, Thomas Renninger wrote: On Sun, 2007-06-17 at 19:49 -0300, Henrique de Moraes Holschuh wrote: On Sun, 17 Jun 2007, Thomas Renninger wrote: Create __mod_acpi_device_table symbol for all acpi drivers. ... model-specific drivers like thinkpad-acpi

Re: [PATCH 12/12] acpi: select ACPI_EC for SONY_LAPTOP

2007-06-19 Thread Mattia Dongili
On Wed, Jun 20, 2007 at 12:52:25AM +0200, Andreas Herrmann wrote: Fix kernel build problem as SONY_LAPTOP depends on ACPI_EC. The same questions about ACPI_SYSTEM and ACPI_POWER surviving oldconfig hold here. See also http://lkml.org/lkml/2007/5/15/168 and following for a previous report. In

Re: [PATCH] sony-laptop: use NULL for pointer

2007-06-06 Thread Mattia Dongili
On Tue, Jun 05, 2007 at 09:43:32PM -0700, Randy Dunlap wrote: From: Randy Dunlap [EMAIL PROTECTED] Use NULL instead of 0 for pointer: drivers/misc/sony-laptop.c:1920:6: warning: Using plain integer as NULL pointer Signed-off-by: Randy Dunlap [EMAIL PROTECTED] Acked-by: Mattia Dongili

Re: [2.6 patch] remove sonypi_camera_command()

2007-06-02 Thread Mattia Dongili
On Sat, Jun 02, 2007 at 09:09:42PM +0200, Adrian Bunk wrote: This patch removes the no longer used sonypi_camera_command(). Signed-off-by: Adrian Bunk [EMAIL PROTECTED] Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- drivers/char/sonypi.c | 47

Re: [2.6.22-rc1-mm1] vaio laptop (SZ72B) immediately resumes after STR

2007-05-20 Thread Mattia Dongili
On Sat, May 19, 2007 at 12:04:13AM -0700, Andrew Morton wrote: On Sat, 19 May 2007 15:48:29 +0900 Mattia Dongili [EMAIL PROTECTED] wrote: On Fri, May 18, 2007 at 12:22:40AM -0700, Andrew Morton wrote: On Fri, 18 May 2007 16:15:24 +0900 Mattia Dongili [EMAIL PROTECTED] wrote

Re: [2.6.22-rc1-mm1] vaio laptop (SZ72B) immediately resumes after STR

2007-05-20 Thread Mattia Dongili
On Sat, May 19, 2007 at 11:47:23PM -0700, Andrew Morton wrote: On Sun, 20 May 2007 15:14:08 +0900 Mattia Dongili [EMAIL PROTECTED] wrote: On Sat, May 19, 2007 at 12:04:13AM -0700, Andrew Morton wrote: On Sat, 19 May 2007 15:48:29 +0900 Mattia Dongili [EMAIL PROTECTED] wrote: ... ok

Re: [2.6.22-rc1-mm1] vaio laptop (SZ72B) immediately resumes after STR

2007-05-20 Thread Mattia Dongili
On Sun, May 20, 2007 at 11:38:04AM -0700, David Brownell wrote: On Saturday 19 May 2007, Mattia Dongili wrote: On Sat, May 19, 2007 at 12:04:13AM -0700, Andrew Morton wrote: On Sat, 19 May 2007 15:48:29 +0900 Mattia Dongili [EMAIL PROTECTED] wrote: On Fri, May 18, 2007 at 12:22

Re: [2.6.22-rc1-mm1] vaio laptop (SZ72B) immediately resumes after STR

2007-05-20 Thread Mattia Dongili
On Sun, May 20, 2007 at 06:22:23PM -0700, David Brownell wrote: On Sunday 20 May 2007, Mattia Dongili wrote: $ cat /proc/acpi/wakeup Device S-state Status Sysfs node PWRB S4*enabled S1F0 S4 disabled S1F1 S4 disabled S1F2

Re: [2.6.22-rc1-mm1] vaio laptop (SZ72B) immediately resumes after STR

2007-05-19 Thread Mattia Dongili
On Fri, May 18, 2007 at 12:22:40AM -0700, Andrew Morton wrote: On Fri, 18 May 2007 16:15:24 +0900 Mattia Dongili [EMAIL PROTECTED] wrote: Hello, After finally catching fw-{ohci,core} to be problematic during resume, I'm now experiencing an immediate resume after suspending. 2.6.21

[2.6.22-rc1-mm1] vaio laptop (SZ72B) immediately resumes after STR

2007-05-18 Thread Mattia Dongili
Hello, After finally catching fw-{ohci,core} to be problematic during resume, I'm now experiencing an immediate resume after suspending. 2.6.21-rc7-mm* didn't even suspend, my last known suspend-and-resuming kernel was 2.6.21-rc5-mm3 (I know one other vaio SZ user could STR with 2.6.21-rc6-mm*

Re: Fwd: Re: Linux 2.6.22-rc1

2007-05-15 Thread Mattia Dongili
On Mon, May 14, 2007 at 10:45:46AM -0700, Randy Dunlap wrote: On Mon, 14 May 2007 07:49:31 +0200 (MEST) Jan Engelhardt wrote: On May 14 2007 10:55, Mattia Dongili wrote: On Sun, May 13, 2007 at 11:27:31AM +0200, Jan Engelhardt wrote: On May 12 2007 20:20, Linus Torvalds wrote

Re: Fwd: Re: Linux 2.6.22-rc1

2007-05-15 Thread Mattia Dongili
On Tue, May 15, 2007 at 10:46:21AM -0700, Randy Dunlap wrote: On Wed, 16 May 2007 00:42:08 +0900 Mattia Dongili wrote: ... Given the drivers/acpi/Kconfig portion if ACPI ... config ACPI_EC bool default y help ... config

Re: ACPI patches for 2.6.22 merge window

2007-04-30 Thread Mattia Dongili
SONY_LAPTOP_OLD to a more meaningful SONYPI_COMPAT Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- Index: linux-2.6/drivers/misc/Kconfig === --- linux-2.6.orig/drivers/misc/Kconfig 2007-04-30 12:18:58.534918327 +0900 +++ linux-2.6/drivers

EC notifications not dispatched?

2007-04-30 Thread Mattia Dongili
Hello, some new Vaio models are notifing hotkeys to the SNC device through the EC (dsdt snippet[1]): Device (EC) { Name (_HID, EisaId (PNP0C09)) ... Name (HF5P, 0x85) Name (HF5R, 0x05) ... Method (_Q50, 0, NotSerialized) { P8XH (Zero, 0x50) SECR

Re: [PATCH] use mutex instead of semaphore in Sony PI driver

2007-04-25 Thread Mattia Dongili
On Tue, Apr 24, 2007 at 10:02:35PM +0200, Matthias Kaehlcke wrote: the Sony Programmable I/O Control driver uses a semaphore as mutex. use the mutex API instead of the (binary) semaphore Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED] Acked-by: Mattia Dongili [EMAIL PROTECTED

CPU_IDLE prevents resuming from STR [was: Re: 2.6.21-rc6-mm1]

2007-04-13 Thread Mattia Dongili
On Sun, Apr 08, 2007 at 02:35:59PM -0700, Andrew Morton wrote: ... git-acpi.patch after bisecting I can finally say what breaks resume from STR here: tada: CPU_IDLE. I first spotted the git-acpi.patch then reapplied it and disabled CPU_IDLE, now my laptop resumes. Any useful information I

Re: [patch 0/9] [RFC] sonypi ACPI reimplementation (resend 3)

2007-04-10 Thread Mattia Dongili
On Tue, Apr 10, 2007 at 04:13:43PM -0400, Len Brown wrote: On Monday 09 April 2007 04:19, [EMAIL PROTECTED] wrote: ... SONY_LAPTOP_OLD There is probably a better name for this -- like SONY_PI_COMPATIBILITY or something. ok, will change asap, I have a couple more patches here that I'll

Re: [patch 0/9] sonypi ACPI reimplementation

2007-04-07 Thread Mattia Dongili
On Fri, Apr 06, 2007 at 06:32:28PM -0700, Andrew Morton wrote: On Thu, 05 Apr 2007 23:36:47 +0200 [EMAIL PROTECTED] wrote: ... 0009-add-sonypi-compat-code.patch compatibility code to allow old sonypi bound userspace apps to still work I never received a copy of the ninth patch and my

[PATCH] sony-laptop: MAINTAINERS fix entry, add L: and W:

2007-03-12 Thread Mattia Dongili
Probably the wrong MAINTAINERS patch has been picked up (sorry for not checking earlier), the following fix that and adds WWW and list contacts for the Sony drivers. Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- Sorry for the inconvenience Len. diff --git a/MAINTAINERS b/MAINTAINERS index

Re: [RFC] sonypi acpi implementation and the future

2007-03-09 Thread Mattia Dongili
On Fri, Mar 09, 2007 at 05:10:02PM +0100, Stelian Pop wrote: Le jeudi 08 mars 2007 à 15:13 +0100, Mattia Dongili a écrit : What's already there: - enable the device using acpi tables information and methods - input layer event reporting - acpi event reporting my current code is here

Re: [GIT PATCH] ACPI patches for 2.6.21 - part II (resend)

2007-03-06 Thread Mattia Dongili
On Tue, Mar 06, 2007 at 01:17:53PM +, Matthew Garrett wrote: On Tue, Mar 06, 2007 at 01:22:13PM +0100, Mattia Dongili wrote: the audiopower is basically a _PS3/_PS0 switch for the device, while the lanpower plays with the embedded controller to powerdown/powerup. Now, unfortunately

[HELP] sonypi going acpi-only

2007-02-25 Thread Mattia Dongili
devices :) Thanks for any suggestion/hint. -- mattia :wq! /* * Sony Programmable I/O Control Device driver for VAIO * * Copyright (C) 2007 Mattia Dongili [EMAIL PROTECTED] * * This driver is based on previous work which includes material from: * * Copyright (C) 2001-2005 Stelian Pop

Re: [linux-pm] Suspend to RAM, Sony Vaio PCG-SRX51P, lcd stays off

2007-02-15 Thread Mattia Dongili
On Thu, February 15, 2007 11:36 am, Pavel Machek said: Hi! I own an older Sony Vaio SRX51P, European Model, P3 based. s2ram identifies it with sys_vendor = Sony Corporation sys_product = PCG-SRX51P(DE) sys_version = 01 bios_version = R0232U2

Re: [PATCH] sony-laptop: allow complex per-value input/output validation

2007-02-13 Thread Mattia Dongili
On Tue, February 13, 2007 5:55 am, Len Brown said: On Monday 12 February 2007 16:01, Mattia Dongili wrote: allows consistency between the sony-laptop specific 'brightness_default' and the backlight subsystem 0-based 'brightness'. Why do we need to have sony-laptop specific

Re: [PATCH] sony-laptop: allow complex per-value input/output validation

2007-02-13 Thread Mattia Dongili
On Tue, February 13, 2007 9:59 am, Richard Purdie said: On Tue, 2007-02-13 at 09:47 +0100, Mattia Dongili wrote: On Tue, February 13, 2007 5:55 am, Len Brown said: On Monday 12 February 2007 16:01, Mattia Dongili wrote: allows consistency between the sony-laptop specific

Re: [PATCH] sony-laptop: allow complex per-value input/output validation

2007-02-13 Thread Mattia Dongili
On Tue, Feb 13, 2007 at 10:16:59AM -0200, Henrique de Moraes Holschuh wrote: On Tue, 13 Feb 2007, Mattia Dongili wrote: well this is actually hardware driven, the brightness_default in sony-laptop only exposes a DSDT method to set this value. So it's actually one more feature

[PATCH] sony-laptop: allow complex per-value input/output validation

2007-02-12 Thread Mattia Dongili
From: Mattia Dongili [EMAIL PROTECTED] Replace sony_acpi_value.{min,max} with a callback function that allows more complex reasoning in accepting input and presenting output. Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- Len, this patch specifically allows consistency between the sony

Re: [PATCH 1/2] Add new sony laptop drivers maintainer

2007-02-09 Thread Mattia Dongili
On Fri, February 9, 2007 2:34 pm, Stelian Pop said: Le vendredi 09 février 2007 à 01:44 -0500, Len Brown a écrit : On Thursday 08 February 2007 14:16, [EMAIL PROTECTED] wrote: From: Mattia Dongili [EMAIL PROTECTED] Signed-off-by: Mattia Dongili [EMAIL PROTECTED] --- MAINTAINERS |2

Re: sony-laptop vs sonypi (Re: [PATCH 1/2] Add new sony laptop drivers maintainer)

2007-02-09 Thread Mattia Dongili
On Fri, Feb 09, 2007 at 08:25:13PM +0100, Mattia Dongili wrote: On Fri, Feb 09, 2007 at 11:58:18AM -0500, Len Brown wrote: [...] One question though: which subsystem should sonypi patches flow through? In the interest of making ACPI use in the platform specific drivers sane and uniform

Re: [PATCH 1/4] Create sony-laptop

2007-02-07 Thread Mattia Dongili
On Wed, 2007-02-07 at 15:50 -0500, Len Brown wrote: Thanks for the follow-up Mattia, I've added this patch series to the acpi-test tree, and added Lindent patch on top of it. I'll double check that it has all the patches from -mm and NAK those when I do, so andrew doesn't get messed up.

Re: acpidump vs tiger2

2007-01-27 Thread Mattia Dongili
On Thu, Jan 25, 2007 at 11:20:02PM -0500, Len Brown wrote: Alexey, Using pmtools-20061130 I get some warnings on a Tiger-2: [EMAIL PROTECTED] lenb]# bin/acpidump acpidump.out acpidump(4538): unaligned access to 0x60008274, ip=0x40002ab1 acpidump(4538): unaligned access to

Re: [PATCH 0/11] sony_acpi: prepare for prime time (resend)

2007-01-17 Thread Mattia Dongili
On Wed, January 17, 2007 6:50 am, Luming Yu said: On 1/15/07, Mattia Dongili [EMAIL PROTECTED] wrote: Hello and sorry for the delay On Mon, Jan 15, 2007 at 04:01:14AM -0500, Luming Yu wrote: Patch series is not clean against 2.6.20-rc5. patch -p1 ../malattia_sony

  1   2   >