diff options
author | Len Brown <len.brown@intel.com> | 2007-03-20 11:05:41 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-03-20 11:05:41 -0400 |
commit | 54b8c39fbd76a7341b66e49de677ea366737fce7 (patch) | |
tree | 2a355e5daa966548034fe30f71fb9d9cc70403cf | |
parent | 0a14fe6e5efd0af0f9c6c01e0433445d615d0110 (diff) | |
parent | 0cd4554df0c261f7ba74786e471ccaa0e3725fb9 (diff) |
Pull misc-for-upstream into release branch
-rw-r--r-- | MAINTAINERS | 5 | ||||
-rw-r--r-- | arch/ia64/Kconfig | 1 | ||||
-rw-r--r-- | drivers/acpi/hardware/hwsleep.c | 5 | ||||
-rw-r--r-- | drivers/acpi/ibm_acpi.c | 19 | ||||
-rw-r--r-- | include/acpi/actypes.h | 2 |
5 files changed, 25 insertions, 7 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 6d8d5b917d1f..dd6978b1e8fb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -3066,11 +3066,10 @@ L: netdev@vger.kernel.org | |||
3066 | S: Maintained | 3066 | S: Maintained |
3067 | 3067 | ||
3068 | SONY VAIO CONTROL DEVICE DRIVER | 3068 | SONY VAIO CONTROL DEVICE DRIVER |
3069 | P: Stelian Pop | ||
3070 | M: stelian@popies.net | ||
3071 | P: Mattia Dongili | 3069 | P: Mattia Dongili |
3072 | M: malattia@linux.it | 3070 | M: malattia@linux.it |
3073 | W: http://popies.net/sonypi/ | 3071 | L: linux-acpi@vger.kernel.org |
3072 | W: http://www.linux.it/~malattia/wiki/index.php/Sony_drivers | ||
3074 | S: Maintained | 3073 | S: Maintained |
3075 | 3074 | ||
3076 | SOUND | 3075 | SOUND |
diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig index d51f0f11f7f9..e19185d26554 100644 --- a/arch/ia64/Kconfig +++ b/arch/ia64/Kconfig | |||
@@ -13,6 +13,7 @@ config IA64 | |||
13 | bool | 13 | bool |
14 | select PCI if (!IA64_HP_SIM) | 14 | select PCI if (!IA64_HP_SIM) |
15 | select ACPI if (!IA64_HP_SIM) | 15 | select ACPI if (!IA64_HP_SIM) |
16 | select PM if (!IA64_HP_SIM) | ||
16 | default y | 17 | default y |
17 | help | 18 | help |
18 | The Itanium Processor Family is Intel's 64-bit successor to | 19 | The Itanium Processor Family is Intel's 64-bit successor to |
diff --git a/drivers/acpi/hardware/hwsleep.c b/drivers/acpi/hardware/hwsleep.c index 8fa93125fd4c..c84b1faba28c 100644 --- a/drivers/acpi/hardware/hwsleep.c +++ b/drivers/acpi/hardware/hwsleep.c | |||
@@ -300,6 +300,11 @@ acpi_status asmlinkage acpi_enter_sleep_state(u8 sleep_state) | |||
300 | /* | 300 | /* |
301 | * 2) Enable all wakeup GPEs | 301 | * 2) Enable all wakeup GPEs |
302 | */ | 302 | */ |
303 | status = acpi_hw_disable_all_gpes(); | ||
304 | if (ACPI_FAILURE(status)) { | ||
305 | return_ACPI_STATUS(status); | ||
306 | } | ||
307 | |||
303 | acpi_gbl_system_awake_and_running = FALSE; | 308 | acpi_gbl_system_awake_and_running = FALSE; |
304 | 309 | ||
305 | status = acpi_hw_enable_all_wakeup_gpes(); | 310 | status = acpi_hw_enable_all_wakeup_gpes(); |
diff --git a/drivers/acpi/ibm_acpi.c b/drivers/acpi/ibm_acpi.c index 36901362fd24..dc1096608f43 100644 --- a/drivers/acpi/ibm_acpi.c +++ b/drivers/acpi/ibm_acpi.c | |||
@@ -2507,7 +2507,7 @@ static int __init setup_notify(struct ibm_struct *ibm) | |||
2507 | ret = acpi_bus_get_device(*ibm->handle, &ibm->device); | 2507 | ret = acpi_bus_get_device(*ibm->handle, &ibm->device); |
2508 | if (ret < 0) { | 2508 | if (ret < 0) { |
2509 | printk(IBM_ERR "%s device not present\n", ibm->name); | 2509 | printk(IBM_ERR "%s device not present\n", ibm->name); |
2510 | return 0; | 2510 | return -ENODEV; |
2511 | } | 2511 | } |
2512 | 2512 | ||
2513 | acpi_driver_data(ibm->device) = ibm; | 2513 | acpi_driver_data(ibm->device) = ibm; |
@@ -2516,8 +2516,13 @@ static int __init setup_notify(struct ibm_struct *ibm) | |||
2516 | status = acpi_install_notify_handler(*ibm->handle, ibm->type, | 2516 | status = acpi_install_notify_handler(*ibm->handle, ibm->type, |
2517 | dispatch_notify, ibm); | 2517 | dispatch_notify, ibm); |
2518 | if (ACPI_FAILURE(status)) { | 2518 | if (ACPI_FAILURE(status)) { |
2519 | printk(IBM_ERR "acpi_install_notify_handler(%s) failed: %d\n", | 2519 | if (status == AE_ALREADY_EXISTS) { |
2520 | ibm->name, status); | 2520 | printk(IBM_NOTICE "another device driver is already handling %s events\n", |
2521 | ibm->name); | ||
2522 | } else { | ||
2523 | printk(IBM_ERR "acpi_install_notify_handler(%s) failed: %d\n", | ||
2524 | ibm->name, status); | ||
2525 | } | ||
2521 | return -ENODEV; | 2526 | return -ENODEV; |
2522 | } | 2527 | } |
2523 | ibm->notify_installed = 1; | 2528 | ibm->notify_installed = 1; |
@@ -2553,6 +2558,8 @@ static int __init register_driver(struct ibm_struct *ibm) | |||
2553 | return ret; | 2558 | return ret; |
2554 | } | 2559 | } |
2555 | 2560 | ||
2561 | static void ibm_exit(struct ibm_struct *ibm); | ||
2562 | |||
2556 | static int __init ibm_init(struct ibm_struct *ibm) | 2563 | static int __init ibm_init(struct ibm_struct *ibm) |
2557 | { | 2564 | { |
2558 | int ret; | 2565 | int ret; |
@@ -2594,6 +2601,12 @@ static int __init ibm_init(struct ibm_struct *ibm) | |||
2594 | 2601 | ||
2595 | if (ibm->notify) { | 2602 | if (ibm->notify) { |
2596 | ret = setup_notify(ibm); | 2603 | ret = setup_notify(ibm); |
2604 | if (ret == -ENODEV) { | ||
2605 | printk(IBM_NOTICE "disabling subdriver %s\n", | ||
2606 | ibm->name); | ||
2607 | ibm_exit(ibm); | ||
2608 | return 0; | ||
2609 | } | ||
2597 | if (ret < 0) | 2610 | if (ret < 0) |
2598 | return ret; | 2611 | return ret; |
2599 | } | 2612 | } |
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index 72a6e2c3a536..56bf492e7acc 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h | |||
@@ -344,7 +344,7 @@ typedef u32 acpi_integer; | |||
344 | 344 | ||
345 | /* 64-bit integers */ | 345 | /* 64-bit integers */ |
346 | 346 | ||
347 | typedef u64 acpi_integer; | 347 | typedef unsigned long long acpi_integer; |
348 | #define ACPI_INTEGER_MAX ACPI_UINT64_MAX | 348 | #define ACPI_INTEGER_MAX ACPI_UINT64_MAX |
349 | #define ACPI_INTEGER_BIT_SIZE 64 | 349 | #define ACPI_INTEGER_BIT_SIZE 64 |
350 | #define ACPI_MAX_DECIMAL_DIGITS 20 /* 2^64 = 18,446,744,073,709,551,616 */ | 350 | #define ACPI_MAX_DECIMAL_DIGITS 20 /* 2^64 = 18,446,744,073,709,551,616 */ |