diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-10 18:39:48 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-10 18:39:48 -0500 |
| commit | 443e6221e465efa8efb752a8405a759ef1161af9 (patch) | |
| tree | 8732213fc309a14f8613849b1ff2a2951757aff1 | |
| parent | 0caca697a2d173c6beff3c24e7d9481b732bd131 (diff) | |
| parent | 1a7d946993aaf2a79e9c65abbe169a108e351bcb (diff) | |
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86: (36 commits)
sony-laptop: support new hotkeys on the P, Z and EC series
platform/x86: Consistently select LEDS Kconfig options
sony-laptop: fix sparse non-ANSI function warning
intel_ips: fix sparse non-ANSI function warning
Support KHLB2 in the compal laptop driver
acer-wmi: Enabled Acer Launch Manager mode
[PATCH] intel_pmic_gpio: modify EOI handling following change of kernel irq subsystem
ACPI Thinkpad: We must always call va_end() after va_start() but do not do so in thinkpad_acpi.c::acpi_evalf()
acer-wmi: Initialize wlan/bluetooth/wwan rfkill software block state
acer-wmi: Detect the WiFi/Bluetooth/3G devices available
acer-wmi: Add 3G rfkill sysfs file
acer-wmi: Add acer wmi hotkey events support
platform/x86: Kconfig: Replace select by depends on ACPI_WMI
ideapad: pass ideapad_priv as argument (part 2)
ideapad: pass ideapad_priv as argument (part 1)
ideapad: add markups, unify comments and return result when init
ideapad: add hotkey support
ideapad: let camera power control entry under platform driver
ideapad: add platform driver for ideapad
fujitsu-laptop: fix compiler warning on pnp_ids
...
| -rw-r--r-- | Documentation/ABI/testing/sysfs-platform-ideapad-laptop | 6 | ||||
| -rw-r--r-- | MAINTAINERS | 8 | ||||
| -rw-r--r-- | drivers/platform/x86/Kconfig | 27 | ||||
| -rw-r--r-- | drivers/platform/x86/Makefile | 1 | ||||
| -rw-r--r-- | drivers/platform/x86/acer-wmi.c | 429 | ||||
| -rw-r--r-- | drivers/platform/x86/classmate-laptop.c | 19 | ||||
| -rw-r--r-- | drivers/platform/x86/compal-laptop.c | 8 | ||||
| -rw-r--r-- | drivers/platform/x86/eeepc-laptop.c | 11 | ||||
| -rw-r--r-- | drivers/platform/x86/eeepc-wmi.c | 609 | ||||
| -rw-r--r-- | drivers/platform/x86/fujitsu-laptop.c | 2 | ||||
| -rw-r--r-- | drivers/platform/x86/ideapad-laptop.c | 259 | ||||
| -rw-r--r-- | drivers/platform/x86/intel_ips.c | 2 | ||||
| -rw-r--r-- | drivers/platform/x86/intel_pmic_gpio.c | 6 | ||||
| -rw-r--r-- | drivers/platform/x86/intel_scu_ipc.c | 4 | ||||
| -rw-r--r-- | drivers/platform/x86/intel_scu_ipcutil.c | 133 | ||||
| -rw-r--r-- | drivers/platform/x86/sony-laptop.c | 12 | ||||
| -rw-r--r-- | drivers/platform/x86/thinkpad_acpi.c | 3 | ||||
| -rw-r--r-- | drivers/platform/x86/wmi.c | 133 | ||||
| -rw-r--r-- | include/linux/sonypi.h | 1 |
19 files changed, 1431 insertions, 242 deletions
diff --git a/Documentation/ABI/testing/sysfs-platform-ideapad-laptop b/Documentation/ABI/testing/sysfs-platform-ideapad-laptop new file mode 100644 index 000000000000..807fca2ae2a4 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-platform-ideapad-laptop | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | What: /sys/devices/platform/ideapad/camera_power | ||
| 2 | Date: Dec 2010 | ||
| 3 | KernelVersion: 2.6.37 | ||
| 4 | Contact: "Ike Panhc <ike.pan@canonical.com>" | ||
| 5 | Description: | ||
| 6 | Control the power of camera module. 1 means on, 0 means off. | ||
diff --git a/MAINTAINERS b/MAINTAINERS index 9e4d4ca690e2..5181828012ce 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
| @@ -2271,6 +2271,14 @@ W: http://acpi4asus.sf.net | |||
| 2271 | S: Maintained | 2271 | S: Maintained |
| 2272 | F: drivers/platform/x86/eeepc-laptop.c | 2272 | F: drivers/platform/x86/eeepc-laptop.c |
| 2273 | 2273 | ||
| 2274 | EEEPC WMI EXTRAS DRIVER | ||
| 2275 | M: Corentin Chary <corentincj@iksaif.net> | ||
| 2276 | L: acpi4asus-user@lists.sourceforge.net | ||
| 2277 | L: platform-driver-x86@vger.kernel.org | ||
| 2278 | W: http://acpi4asus.sf.net | ||
| 2279 | S: Maintained | ||
| 2280 | F: drivers/platform/x86/eeepc-wmi.c | ||
| 2281 | |||
| 2274 | EFIFB FRAMEBUFFER DRIVER | 2282 | EFIFB FRAMEBUFFER DRIVER |
| 2275 | L: linux-fbdev@vger.kernel.org | 2283 | L: linux-fbdev@vger.kernel.org |
| 2276 | M: Peter Jones <pjones@redhat.com> | 2284 | M: Peter Jones <pjones@redhat.com> |
diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index faec777b1ed4..d163bc2e2b9e 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig | |||
| @@ -18,12 +18,14 @@ if X86_PLATFORM_DEVICES | |||
| 18 | config ACER_WMI | 18 | config ACER_WMI |
| 19 | tristate "Acer WMI Laptop Extras" | 19 | tristate "Acer WMI Laptop Extras" |
| 20 | depends on ACPI | 20 | depends on ACPI |
| 21 | depends on LEDS_CLASS | 21 | select LEDS_CLASS |
| 22 | depends on NEW_LEDS | 22 | select NEW_LEDS |
| 23 | depends on BACKLIGHT_CLASS_DEVICE | 23 | depends on BACKLIGHT_CLASS_DEVICE |
| 24 | depends on SERIO_I8042 | 24 | depends on SERIO_I8042 |
| 25 | depends on INPUT | ||
| 25 | depends on RFKILL || RFKILL = n | 26 | depends on RFKILL || RFKILL = n |
| 26 | select ACPI_WMI | 27 | depends on ACPI_WMI |
| 28 | select INPUT_SPARSEKMAP | ||
| 27 | ---help--- | 29 | ---help--- |
| 28 | This is a driver for newer Acer (and Wistron) laptops. It adds | 30 | This is a driver for newer Acer (and Wistron) laptops. It adds |
| 29 | wireless radio and bluetooth control, and on some laptops, | 31 | wireless radio and bluetooth control, and on some laptops, |
| @@ -131,7 +133,7 @@ config TC1100_WMI | |||
| 131 | depends on !X86_64 | 133 | depends on !X86_64 |
| 132 | depends on EXPERIMENTAL | 134 | depends on EXPERIMENTAL |
| 133 | depends on ACPI | 135 | depends on ACPI |
| 134 | select ACPI_WMI | 136 | depends on ACPI_WMI |
| 135 | ---help--- | 137 | ---help--- |
| 136 | This is a driver for the WMI extensions (wireless and bluetooth power | 138 | This is a driver for the WMI extensions (wireless and bluetooth power |
| 137 | control) of the HP Compaq TC1100 tablet. | 139 | control) of the HP Compaq TC1100 tablet. |
| @@ -226,6 +228,7 @@ config IDEAPAD_LAPTOP | |||
| 226 | tristate "Lenovo IdeaPad Laptop Extras" | 228 | tristate "Lenovo IdeaPad Laptop Extras" |
| 227 | depends on ACPI | 229 | depends on ACPI |
| 228 | depends on RFKILL | 230 | depends on RFKILL |
| 231 | select INPUT_SPARSEKMAP | ||
| 229 | help | 232 | help |
| 230 | This is a driver for the rfkill switches on Lenovo IdeaPad netbooks. | 233 | This is a driver for the rfkill switches on Lenovo IdeaPad netbooks. |
| 231 | 234 | ||
| @@ -425,7 +428,10 @@ config EEEPC_WMI | |||
| 425 | depends on INPUT | 428 | depends on INPUT |
| 426 | depends on EXPERIMENTAL | 429 | depends on EXPERIMENTAL |
| 427 | depends on BACKLIGHT_CLASS_DEVICE | 430 | depends on BACKLIGHT_CLASS_DEVICE |
| 431 | depends on RFKILL || RFKILL = n | ||
| 428 | select INPUT_SPARSEKMAP | 432 | select INPUT_SPARSEKMAP |
| 433 | select LEDS_CLASS | ||
| 434 | select NEW_LEDS | ||
| 429 | ---help--- | 435 | ---help--- |
| 430 | Say Y here if you want to support WMI-based hotkeys on Eee PC laptops. | 436 | Say Y here if you want to support WMI-based hotkeys on Eee PC laptops. |
| 431 | 437 | ||
| @@ -510,8 +516,8 @@ config TOPSTAR_LAPTOP | |||
| 510 | config ACPI_TOSHIBA | 516 | config ACPI_TOSHIBA |
| 511 | tristate "Toshiba Laptop Extras" | 517 | tristate "Toshiba Laptop Extras" |
| 512 | depends on ACPI | 518 | depends on ACPI |
| 513 | depends on LEDS_CLASS | 519 | select LEDS_CLASS |
| 514 | depends on NEW_LEDS | 520 | select NEW_LEDS |
| 515 | depends on BACKLIGHT_CLASS_DEVICE | 521 | depends on BACKLIGHT_CLASS_DEVICE |
| 516 | depends on INPUT | 522 | depends on INPUT |
| 517 | depends on RFKILL || RFKILL = n | 523 | depends on RFKILL || RFKILL = n |
| @@ -576,6 +582,15 @@ config INTEL_SCU_IPC | |||
| 576 | some embedded Intel x86 platforms. This is not needed for PC-type | 582 | some embedded Intel x86 platforms. This is not needed for PC-type |
| 577 | machines. | 583 | machines. |
| 578 | 584 | ||
| 585 | config INTEL_SCU_IPC_UTIL | ||
| 586 | tristate "Intel SCU IPC utility driver" | ||
| 587 | depends on INTEL_SCU_IPC | ||
| 588 | default y | ||
| 589 | ---help--- | ||
| 590 | The IPC Util driver provides an interface with the SCU enabling | ||
| 591 | low level access for debug work and updating the firmware. Say | ||
| 592 | N unless you will be doing this on an Intel MID platform. | ||
| 593 | |||
| 579 | config GPIO_INTEL_PMIC | 594 | config GPIO_INTEL_PMIC |
| 580 | bool "Intel PMIC GPIO support" | 595 | bool "Intel PMIC GPIO support" |
| 581 | depends on INTEL_SCU_IPC && GPIOLIB | 596 | depends on INTEL_SCU_IPC && GPIOLIB |
diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile index 9950ccc940b5..4ec4ff8f9182 100644 --- a/drivers/platform/x86/Makefile +++ b/drivers/platform/x86/Makefile | |||
| @@ -28,6 +28,7 @@ obj-$(CONFIG_TOPSTAR_LAPTOP) += topstar-laptop.o | |||
| 28 | obj-$(CONFIG_ACPI_TOSHIBA) += toshiba_acpi.o | 28 | obj-$(CONFIG_ACPI_TOSHIBA) += toshiba_acpi.o |
| 29 | obj-$(CONFIG_TOSHIBA_BT_RFKILL) += toshiba_bluetooth.o | 29 | obj-$(CONFIG_TOSHIBA_BT_RFKILL) += toshiba_bluetooth.o |
| 30 | obj-$(CONFIG_INTEL_SCU_IPC) += intel_scu_ipc.o | 30 | obj-$(CONFIG_INTEL_SCU_IPC) += intel_scu_ipc.o |
| 31 | obj-$(CONFIG_INTEL_SCU_IPC_UTIL)+= intel_scu_ipcutil.o | ||
| 31 | obj-$(CONFIG_RAR_REGISTER) += intel_rar_register.o | 32 | obj-$(CONFIG_RAR_REGISTER) += intel_rar_register.o |
| 32 | obj-$(CONFIG_INTEL_IPS) += intel_ips.o | 33 | obj-$(CONFIG_INTEL_IPS) += intel_ips.o |
| 33 | obj-$(CONFIG_GPIO_INTEL_PMIC) += intel_pmic_gpio.o | 34 | obj-$(CONFIG_GPIO_INTEL_PMIC) += intel_pmic_gpio.o |
diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index c8c65375bfe2..ee40d681edd0 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c | |||
| @@ -37,6 +37,9 @@ | |||
| 37 | #include <linux/workqueue.h> | 37 | #include <linux/workqueue.h> |
| 38 | #include <linux/debugfs.h> | 38 | #include <linux/debugfs.h> |
| 39 | #include <linux/slab.h> | 39 | #include <linux/slab.h> |
| 40 | #include <linux/input.h> | ||
| 41 | #include <linux/input/sparse-keymap.h> | ||
| 42 | #include <linux/dmi.h> | ||
| 40 | 43 | ||
| 41 | #include <acpi/acpi_drivers.h> | 44 | #include <acpi/acpi_drivers.h> |
| 42 | 45 | ||
| @@ -48,6 +51,7 @@ MODULE_LICENSE("GPL"); | |||
| 48 | #define ACER_ERR KERN_ERR ACER_LOGPREFIX | 51 | #define ACER_ERR KERN_ERR ACER_LOGPREFIX |
| 49 | #define ACER_NOTICE KERN_NOTICE ACER_LOGPREFIX | 52 | #define ACER_NOTICE KERN_NOTICE ACER_LOGPREFIX |
| 50 | #define ACER_INFO KERN_INFO ACER_LOGPREFIX | 53 | #define ACER_INFO KERN_INFO ACER_LOGPREFIX |
| 54 | #define ACER_WARNING KERN_WARNING ACER_LOGPREFIX | ||
| 51 | 55 | ||
| 52 | /* | 56 | /* |
| 53 | * Magic Number | 57 | * Magic Number |
| @@ -82,9 +86,82 @@ MODULE_LICENSE("GPL"); | |||
