Skip to content

Commit da547d7

Browse files
committed
Merge trivial low-risk suspend hotkey bugzilla-5918 into release
6 parents ef7d1b2 + 5b9c9bf + df6fd31 + 4e6e650 + 5672bde + 16a7474 commit da547d7

16 files changed

Lines changed: 229 additions & 179 deletions

File tree

‎MAINTAINERS‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,12 @@ M: rdunlap@xenotime.net
889889
T: git http://tali.admingilde.org/git/linux-docbook.git
890890
S: Maintained
891891

892+
DOCKING STATION DRIVER
893+
P: Kristen Carlson Accardi
894+
M: kristen.c.accardi@intel.com
895+
L: linux-acpi@vger.kernel.org
896+
S: Maintained
897+
892898
DOUBLETALK DRIVER
893899
P: James R. Van Zandt
894900
M: jrv@vanzandt.mv.com

‎arch/i386/kernel/acpi/boot.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static inline int gsi_irq_sharing(int gsi) { return gsi; }
5959

6060
#define BAD_MADT_ENTRY(entry, end) ( \
6161
(!entry) || (unsigned long)entry + sizeof(*entry) > end || \
62-
((acpi_table_entry_header *)entry)->length != sizeof(*entry))
62+
((acpi_table_entry_header *)entry)->length < sizeof(*entry))
6363

6464
#define PREFIX "ACPI: "
6565

‎arch/i386/kernel/acpi/wakeup.S‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,10 @@ ENTRY(do_suspend_lowlevel)
292292
pushl $3
293293
call acpi_enter_sleep_state
294294
addl $4, %esp
295-
ret
295+
296+
# In case of S3 failure, we'll emerge here. Jump
297+
# to ret_point to recover
298+
jmp ret_point
296299
.p2align 4,,7
297300
ret_point:
298301
call restore_registers

‎arch/ia64/kernel/acpi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
#define BAD_MADT_ENTRY(entry, end) ( \
5757
(!entry) || (unsigned long)entry + sizeof(*entry) > end || \
58-
((acpi_table_entry_header *)entry)->length != sizeof(*entry))
58+
((acpi_table_entry_header *)entry)->length < sizeof(*entry))
5959

6060
#define PREFIX "ACPI: "
6161

‎drivers/acpi/ac.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ static int __init acpi_ac_init(void)
285285
{
286286
int result;
287287

288+
if (acpi_disabled)
289+
return -ENODEV;
288290

289291
acpi_ac_dir = acpi_lock_ac_dir();
290292
if (!acpi_ac_dir)

‎drivers/acpi/acpi_memhotplug.c‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -484,10 +484,8 @@ acpi_memory_register_notify_handler(acpi_handle handle,
484484

485485

486486
status = is_memory_device(handle);
487-
if (ACPI_FAILURE(status)){
488-
ACPI_EXCEPTION((AE_INFO, status, "handle is no memory device"));
487+
if (ACPI_FAILURE(status))
489488
return AE_OK; /* continue */
490-
}
491489

492490
status = acpi_install_notify_handler(handle, ACPI_SYSTEM_NOTIFY,
493491
acpi_memory_device_notify, NULL);
@@ -503,10 +501,8 @@ acpi_memory_deregister_notify_handler(acpi_handle handle,
503501

504502

505503
status = is_memory_device(handle);
506-
if (ACPI_FAILURE(status)){
507-
ACPI_EXCEPTION((AE_INFO, status, "handle is no memory device"));
504+
if (ACPI_FAILURE(status))
508505
return AE_OK; /* continue */
509-
}
510506

511507
status = acpi_remove_notify_handler(handle,
512508
ACPI_SYSTEM_NOTIFY,

‎drivers/acpi/battery.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,9 @@ static int __init acpi_battery_init(void)
757757
{
758758
int result;
759759

760+
if (acpi_disabled)
761+
return -ENODEV;
762+
760763
acpi_battery_dir = acpi_lock_battery_dir();
761764
if (!acpi_battery_dir)
762765
return -ENODEV;

‎drivers/acpi/bus.c‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <linux/module.h>
2626
#include <linux/init.h>
2727
#include <linux/ioport.h>
28+
#include <linux/kernel.h>
2829
#include <linux/list.h>
2930
#include <linux/sched.h>
3031
#include <linux/pm.h>
@@ -68,7 +69,8 @@ int acpi_bus_get_device(acpi_handle handle, struct acpi_device **device)
6869

6970
status = acpi_get_data(handle, acpi_bus_data_handler, (void **)device);
7071
if (ACPI_FAILURE(status) || !*device) {
71-
ACPI_EXCEPTION((AE_INFO, status, "No context for object [%p]", handle));
72+
ACPI_DEBUG_PRINT((ACPI_DB_INFO, "No context for object [%p]\n",
73+
handle));
7274
return -ENODEV;
7375
}
7476

@@ -192,7 +194,7 @@ int acpi_bus_set_power(acpi_handle handle, int state)
192194
/* Make sure this is a valid target state */
193195

194196
if (!device->flags.power_manageable) {
195-
ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Device `[%s]' is not power manageable",
197+
ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Device `[%s]' is not power manageable\n",
196198
device->kobj.name));
197199
return -ENODEV;
198200
}
@@ -738,7 +740,10 @@ static int __init acpi_init(void)
738740
return -ENODEV;
739741
}
740742

741-
firmware_register(&acpi_subsys);
743+
result = firmware_register(&acpi_subsys);
744+
if (result < 0)
745+
printk(KERN_WARNING "%s: firmware_register error: %d\n",
746+
__FUNCTION__, result);
742747

743748
result = acpi_bus_init();
744749

0 commit comments

Comments
 (0)