Re: /proc/acpi/ac_adapter/AC is missing after latest ACPI merge

2007-02-12 Thread Ismail Dönmez
On Tuesday 13 February 2007 07:23:15 Len Brown wrote: > On Monday 12 February 2007 13:45, Ismail Dönmez wrote: > > Hi all, > > > > After latest ACPI merge /proc/acpi/ac_adapter/AC has gone fishing : > > > > [~]> ls -al /proc/acpi/ac_adapter/ > > dr-xr-xr-x 2 root root 0 Şub 12 20:44 ADP1 > > > > [

Re: [PATCH 26/41] ACPI: video: Fix null pointer in appledisplay driver

2007-02-12 Thread Len Brown
On Tuesday 13 February 2007 00:49, Len Brown wrote: > From: Michael Hanselmann <[EMAIL PROTECTED]> > > commit "ACPI: video: Add dev argument for backlight_device_register" > 519ab5f2be65b72cf12ae99c89752bbe79b44df6 > broke the apple display driver. > > Signed-off-by: Michael Hanselmann <[EMAIL PR

[PATCH 41/41] ACPI: cleanup: make disable_acpi() valid w/o CONFIG_ACPI

2007-02-12 Thread Len Brown
From: Rusty Russell <[EMAIL PROTECTED]> Len Brown <[EMAIL PROTECTED]> said: > Okay, but better to use disable_acpi() > indeed, since this would be the first code not already inside CONFIG_ACPI > to invoke disable_acpi(), we could define the inline as empty and you could > then scratch the #ifdef t

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

2007-02-12 Thread Len Brown
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. This allows consistency between the sony-laptop specific 'brightness_default' and the backlight subsystem 0-based 'brigh

[PATCH 38/41] ACPI: fix acpi_driver.name usage

2007-02-12 Thread Len Brown
From: Len Brown <[EMAIL PROTECTED]> It was erroneously used as a description rather than a name. ie. turn this: [EMAIL PROTECTED]:/sys> ls bus/acpi/drivers ACPI AC Adapter Driver ACPI Embedded Controller Driver ACPI Power Resource Driver ACPI Battery Driver ACPI Fan Driver

[PATCH 39/41] ACPI: delete extra #defines in /drivers/acpi/ drivers

2007-02-12 Thread Len Brown
From: Len Brown <[EMAIL PROTECTED]> Cosmetic only. Except in a single case, #define ACPI_*_DRIVER_NAME were invoked 0 or 1 times. Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/ac.c |3 +-- drivers/acpi/acpi_memhotplug.c |3 +-- drivers/acpi/battery

[PATCH 37/41] ACPI: clean up ACPI_MODULE_NAME() use

2007-02-12 Thread Len Brown
From: Len Brown <[EMAIL PROTECTED]> cosmetic only Make "module name" actually match the file name. Invoke with ';' as leaving it off confuses Lindent and gcc doesn't care. Fix indentation where Lindent did get confused. Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/ac.c

[PATCH 36/41] ACPI: IA64: fix calculation of apic_id

2007-02-12 Thread Len Brown
From: Alexey Starikovskiy <[EMAIL PROTECTED]> fix regression from recent table re-write Signed-off-by: Alexey Starikovskiy <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/processor_core.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/

[PATCH 35/41] ACPI: acpi_table_parse_madt_family() is not MADT specific

2007-02-12 Thread Len Brown
From: Len Brown <[EMAIL PROTECTED]> acpi_table_parse_madt_family() is also used to parse SRAT entries. So re-name it to acpi_table_parse_entries(), and re-name the madt-specific variables within it accordingly. cosmetic only. Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/numa.c

[PATCH 34/41] ACPI: acpi_madt_entry_handler() is not MADT specific

2007-02-12 Thread Len Brown
From: Len Brown <[EMAIL PROTECTED]> acpi_madt_entry_handler() is also used for the SRAT, so re-name it acpi_table_entry_handler(). cosmetic only. Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/numa.c |4 ++-- drivers/acpi/tables.c |4 ++-- include/linux/acpi.h |6 +

[PATCH 33/41] ACPI: acpi_table_parse() now returns success/fail, not count

2007-02-12 Thread Len Brown
From: Len Brown <[EMAIL PROTECTED]> Returning count for tables that are supposed to be unique was useless and confusing. Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- arch/x86_64/kernel/early-quirks.c |4 +++- arch/x86_64/pci/mmconfig.c|4 +++- drivers/acpi/numa.c

[PATCH 32/41] ACPI: add video driver MAINTAINER

2007-02-12 Thread Len Brown
From: Len Brown <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- MAINTAINERS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index fe35f3a..7c5d329 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -247,6 +247,13 @@ L: linux

[PATCH 30/41] ACPI: battery: check for battery present on /proc/battery access

2007-02-12 Thread Len Brown
From: Vladimir Lebedev <[EMAIL PROTECTED]> http://bugzilla.kernel.org/show_bug.cgi?id=7200 Signed-off-by: Vladimir Lebedev <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/battery.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff -

[PATCH 31/41] ACPI: sbs: fix present rate

2007-02-12 Thread Len Brown
From: Vladimir Lebedev <[EMAIL PROTECTED]> http://bugzilla.kernel.org/show_bug.cgi?id=7897 Signed-off-by: Vladimir Lebedev <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/sbs.c | 20 +--- 1 files changed, 9 insertions(+), 11 deletions(-) diff

[PATCH 29/41] ACPI: invoke acpi_sleep_init() earlier

2007-02-12 Thread Len Brown
From: Alexey Starikovskiy <[EMAIL PROTECTED]> late_initcall() is too late for acpi_sleep_init(). Call it directly from acpi_init code. http://bugzilla.kernel.org/show_bug.cgi?id=7887 Signed-off-by: Alexey Starikovskiy <[EMAIL PROTECTED]> Signed-off-by: Vladimir Lebedev <[EMAIL PROTECTED]> Signed

[PATCH 27/41] ACPI: hotkey: remove driver, per feature-removal-schedule.txt

2007-02-12 Thread Len Brown
From: Len Brown <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- Documentation/acpi-hotkey.txt | 38 - Documentation/feature-removal-schedule.txt | 23 - drivers/acpi/asus_acpi.c |4 - drivers/acpi/hotkey.c | 1042 ---

[PATCH 28/41] ACPI: Disable GPEs in preparation for sleep.

2007-02-12 Thread Len Brown
From: Alexey Starikovskiy <[EMAIL PROTECTED]> http://bugzilla.kernel.org/show_bug.cgi?id=7887 Signed-off-by: Alexey Starikovskiy <[EMAIL PROTECTED]> Signed-off-by: Vladimir Lebedev <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/hardware/hwsleep.c | 13 +++

[PATCH 26/41] ACPI: video: Fix null pointer in appledisplay driver

2007-02-12 Thread Len Brown
From: Michael Hanselmann <[EMAIL PROTECTED]> commit "ACPI: video: Add dev argument for backlight_device_register" 519ab5f2be65b72cf12ae99c89752bbe79b44df6 broke the apple display driver. Signed-off-by: Michael Hanselmann <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- driver

[PATCH 25/41] ACPI: ibm-acpi: cleanup init and exit paths

2007-02-12 Thread Len Brown
From: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> Fix a small memory leak on module removal, and other assorted minor cleanups on the module init codepath. Signed-off-by: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/ibm_acpi.c

[PATCH 24/41] ACPI: bay: fix wrong order of kzalloc arguments

2007-02-12 Thread Len Brown
From: Al Viro <[EMAIL PROTECTED]> Signed-off-by: Al Viro <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/bay.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/acpi/bay.c b/drivers/acpi/bay.c index 9fdee61..73dc10d 100644 --- a/dr

[PATCH 23/41] sony-laptop: add to MAINTAINERS

2007-02-12 Thread Len Brown
From: Mattia Dongili <[EMAIL PROTECTED]> Signed-off-by: Mattia Dongili <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- MAINTAINERS |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 0ad8803..7b3cd6d 100644 --- a/MAINTAINE

[PATCH 22/41] sony-laptop: Update docs

2007-02-12 Thread Len Brown
From: Mattia Dongili <[EMAIL PROTECTED]> Update documentation to be consistent with current implementation (backlight subsys and platform_device). Signed-off-by: Mattia Dongili <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- Documentation/acpi/sony_acpi.txt | 87 --

[PATCH 19/41] ACPI: updates rtc-cmos device platform_data

2007-02-12 Thread Len Brown
From: David Brownell <[EMAIL PROTECTED]> Update ACPI to export its RTC extension information through platform_data to the PNPACPI or platform bus device node used on the system being set up. This will need to be updated later to provide a firmware hook to handle system suspend with an alarm pendi

[PATCH 20/41] ACPI: bay: fix build warning

2007-02-12 Thread Len Brown
From: Andrew Morton <[EMAIL PROTECTED]> drivers/acpi/bay.c: In function 'bay_add': drivers/acpi/bay.c:310: warning: statement with no effect Fix it by rewriting those macros in C. Much nicer. Cc: Kristen Carlson Accardi <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed

[PATCH 18/41] ACPI: asus_acpi: Add support for Asus Z81SP

2007-02-12 Thread Len Brown
From: Matthew C Campbell <[EMAIL PROTECTED]> Adds support in asus_acpi for the Asus Z81SP laptop. This preserves all old functionality when improperly detected as well as enabling Bluetooth support. Signed-off-by: Matthew C Campbell <[EMAIL PROTECTED]> Acked-by: Corentin Chary <[EMAIL PROTECTED]

[PATCH 17/41] ACPI: bay: remove ACPI driver struct

2007-02-12 Thread Len Brown
From: Kristen Carlson Accardi <[EMAIL PROTECTED]> The bay driver is a platform driver, and doesn't need to also be an acpi driver. Remove the acpi driver related structures and callbacks, they didn't do anything anyway. Switch to uevent for user space event notification. Signed-off-by: Kristen

[PATCH 15/41] sony-laptop: Group functions and structures to better draw subsytems usage

2007-02-12 Thread Len Brown
From: Mattia Dongili <[EMAIL PROTECTED]> Signed-off-by: Mattia Dongili <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/misc/sony-laptop.c | 92 --- 1 files changed, 51 insertions(+), 41 deletions(-) diff --git a/drivers/misc/

[PATCH 16/41] sony-laptop: Lindent

2007-02-12 Thread Len Brown
From: Len Brown <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/misc/sony-laptop.c | 151 +++- 1 files changed, 78 insertions(+), 73 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index 4a69c

[PATCH 14/41] sony-laptop: Small update to the Kconfig help to make people believe this driver is useful.

2007-02-12 Thread Len Brown
From: Mattia Dongili <[EMAIL PROTECTED]> Signed-off-by: Mattia Dongili <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/misc/Kconfig |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 78fc47b..00

[PATCH 13/41] sony-laptop: Remove /proc/acpi/sony interface and implement platform_device.

2007-02-12 Thread Len Brown
From: Mattia Dongili <[EMAIL PROTECTED]> Rework method names list to allow an easier management of multiple values. Add myself as author/maintainer and bump the version number. Signed-off-by: Mattia Dongili <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/misc/sony-la

[PATCH 12/41] sony-laptop: create from sony_acpi

2007-02-12 Thread Len Brown
From: Mattia Dongili <[EMAIL PROTECTED]> Move drivers/acpi/sony_acpi.c to drivers/misc/sony-laptop.c with all the necessary configuration. The SONY_LAPTOP config option substitutes the old ACPI_SONY and is 'default n' now. Signed-off-by: Mattia Dongili <[EMAIL PROTECTED]> Signed-off-by: Len Brown

[PATCH 10/41] sony_acpi: Allow multiple sony_acpi_values for the same .name

2007-02-12 Thread Len Brown
From: Mattia Dongili <[EMAIL PROTECTED]> The acpi handles are kept _only_ if both the requested .acpiget and .acpiset are available in the DSDT. Currently only the SCDP/CDPW dualism is known. Signed-off-by: Mattia Dongili <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drive

[PATCH 11/41] sony_acpi: Fix sony_acpi backlight registration and unregistration

2007-02-12 Thread Len Brown
From: Mattia Dongili <[EMAIL PROTECTED]> Initialize the current brightness if the driver registration was successful and unregister the driver in the error exit path. Signed-off-by: Mattia Dongili <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/sony_acpi.c |

[PATCH 09/41] sony_acpi: Add lanpower and audiopower controls

2007-02-12 Thread Len Brown
From: Mattia Dongili <[EMAIL PROTECTED]> audiopower works well on my SZ72B so it's not marked has "debug" while lanpower has at least one report of not resuming power happily so morked as "debug" Signed-off-by: Mattia Dongili <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- d

[PATCH 07/41] sony_acpi: Add acpi_bus_generate event

2007-02-12 Thread Len Brown
From: Stelian Pop <[EMAIL PROTECTED]> Added acpi_bus_generate event for forwarding Fn-keys pressed to acpi subsystem, and made correspondent necessary changes for this to work. Signed-off-by: Nilton Volpato <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Mattia

[PATCH 08/41] sony_acpi: Allow easier debugging for the unknown SNC methods.

2007-02-12 Thread Len Brown
From: Mattia Dongili <[EMAIL PROTECTED]> Allow the existence of a setter method without a getter and viceversa, additionaly set /proc file permissions reflecting it. Fix also the error exit path. Signed-off-by: Mattia Dongili <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- d

[PATCH 06/41] sony_acpi: Video sysfs support take 2

2007-02-12 Thread Len Brown
From: Andrew Morton <[EMAIL PROTECTED]> add dev argument for backlight_device_register Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Mattia Dongili <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/sony_acpi.c |2 +- 1 files changed, 1 insert

[PATCH 05/41] sony_acpi: Add backlight support to the sony_acpi v2

2007-02-12 Thread Len Brown
From: Alessandro Guido <[EMAIL PROTECTED]> Enable the sony_acpi driver to use the backlight subsysyem for adjusting the monitor brightness. Old way of changing the brightness will be still available for compatibility with existing tools. Signed-off-by: Alessandro Guido <[EMAIL PROTECTED]> Signed

[PATCH 03/41] sony_acpi: Fix sony_acpi_resume call

2007-02-12 Thread Len Brown
From: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Mattia Dongili <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/sony_acpi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/ac

[PATCH 04/41] sony_acpi: Add backlight support to the sony_acpi

2007-02-12 Thread Len Brown
From: Alessandro Guido <[EMAIL PROTECTED]> Make the sony_acpi use the backlight subsystem to adjust brightness value instead of using the /proc/sony/brightness file. (Other settings will still have a /proc/sony/... entry) Signed-off-by: Alessandro Guido <[EMAIL PROTECTED]> Cc: Stelian Pop <[EMA

[PATCH 01/41] sony_acpi: SNC device support for Sony Vaios

2007-02-12 Thread Len Brown
From: Stelian Pop <[EMAIL PROTECTED]> From: Bjorn Helgaas <[EMAIL PROTECTED]> Even though the devices claimed by sony_acpi.c can not be hot-plugged, the driver registration infrastructure allows the .add() and .remove() methods to be called at any time while the driver is registered. So re

ACPI related patches for 2.6.21 -- part II

2007-02-12 Thread Len Brown
The following patches are staged to go upstream for 2.6.21. thanks, -Len - To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 02/41] sony_acpi: Avoid dimness on resume.

2007-02-12 Thread Len Brown
From: Andrew Morton <[EMAIL PROTECTED]> Doesn't work. Cc: Stelian Pop <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Mattia Dongili <[EMAIL PROTECTED]> Signed-off-by: Len Brown <[EMAIL PROTECTED]> --- drivers/acpi/sony_acpi.c | 49 ++

Re: /proc/acpi/ac_adapter/AC is missing after latest ACPI merge

2007-02-12 Thread Len Brown
On Monday 12 February 2007 13:45, Ismail Dönmez wrote: > Hi all, > > After latest ACPI merge /proc/acpi/ac_adapter/AC has gone fishing : > > [~]> ls -al /proc/acpi/ac_adapter/ > dr-xr-xr-x 2 root root 0 Şub 12 20:44 ADP1 > > [~]> ls -al /proc/acpi/ac_adapter/ADP1 > -r--r--r-- 1 root root 0 Şub

Re: Enabling the IO-APIC on an Abit KT7A motherboard

2007-02-12 Thread Len Brown
On Sunday 11 February 2007 12:11, Roger James wrote: > I have been trying to get the IO-APIC on an Abit KT7A motherboard recognised > by the kernel (2.6.19.2). This is of course a single processor system. The > kernel has the CONFIG_X86_UP_APIC, CONFIG_X86_UP_IOAPIC, > CONFIG_X86_LOCAL_APIC, and CO

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

2007-02-12 Thread Len Brown
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 'brightness_default'" -- is that a shortcoming of the backlight subs

[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-

/proc/acpi/ac_adapter/AC is missing after latest ACPI merge

2007-02-12 Thread Ismail Dönmez
Hi all, After latest ACPI merge /proc/acpi/ac_adapter/AC has gone fishing : [~]> ls -al /proc/acpi/ac_adapter/ dr-xr-xr-x 2 root root 0 Şub 12 20:44 ADP1 [~]> ls -al /proc/acpi/ac_adapter/ADP1 -r--r--r-- 1 root root 0 Şub 12 20:44 state This at least breaks HAL which thinks AC is always plugge

Re: git backlight tree

2007-02-12 Thread Richard Purdie
On Sat, 2007-02-10 at 23:45 -0500, Len Brown wrote: > On Saturday 10 February 2007 19:33, Richard Purdie wrote: > > As mentioned previously, I've setup a backlight git tree at: > > > > http://git.o-hand.com/?p=linux-rpurdie-backlight;a=shortlog;h=for-mm > > (git://git.o-hand.com/linux-rpurdie-back