[PATCH 0/11] Various ACPI patches for 2.6.38

January 06th, 2011 - 05:50 pm ET by Rafael J. Wysocki | Report spam
Hi,

In this series there are several ACPI patches I'd like to go into 2.6.38.
Some of them have been posted to linux-acpi already, some others are new.

[1/11] - Fix global lock acquisition (this patch is the same as
https://patchwork.kernel.org/patch/435861/).

[2/11] - Prevent /proc/acpi/wakeup from enabling multiple devices to
wake up simultaneously (this patch is the same as
https://patchwork.kernel.org/patch/436351/).

[3/11] - Make the button driver use standard device wakeup flags
(same as https://patchwork.kernel.org/patch/436321/).

[4/11] - Drop special ACPI wakeup flags that aren't necessary any more
(same as https://patchwork.kernel.org/patch/436341/).

[5/11] - Use pm_wakeup_event() to report wakeup events from ACPI buttons
(same as https://patchwork.kernel.org/patch/436331/).

[6/11] - Blacklist Averatec box requiring acpi_sleep=nonvs (new patch).

[7/11] - Rename acpi_power_off_device() (new patch).

[8/11] - Check status of power resources under mutexes (new patch).

[9/11] - Avoid printing messages about missing _PRW methods unnecessarily
(new, fixes a glitch introduced by one of the recent regression fixes,
-stable material).

[10/11] - Remove the wake_capable flag which isn't really useful (new patch).

[11/11] - Refresh battery information on 0x81 notification and during resume
(new patch, based on the Matthew's battery patch we discussed some
time ago).

Please consider for applying.

[NOTE: This series doesn't contain patches that depend on the latest ACPICA
update and fix/modify changes made by it.]

Thanks,
Rafael

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
email Follow the discussionReplies 7 repliesReplies Make a reply

Replies

#1 Rafael J. Wysocki
January 06th, 2011 - 05:50 pm ET | Report spam
From: Rafael J. Wysocki

Since ACPI buttons and lids can be configured to wake up the system
from sleep states, report wakeup events from these devices.

Signed-off-by: Rafael J. Wysocki

drivers/acpi/button.c | 5 +++++
1 file changed, 5 insertions(+)

Index: linux-2.6/drivers/acpi/button.c
linux-2.6.orig/drivers/acpi/button.c
+++ linux-2.6/drivers/acpi/button.c
@@ -279,6 +279,9 @@ static int acpi_lid_send_state(struct ac
input_report_switch(button->input, SW_LID, !state);
input_sync(button->input);

+ if (state)
+ pm_wakeup_event(&device->dev, 0);
+
ret = blocking_notifier_call_chain(&acpi_lid_notifier, state, device);
if (ret == NOTIFY_DONE)
ret = blocking_notifier_call_chain(&acpi_lid_notifier, state,
@@ -314,6 +317,8 @@ static void acpi_button_notify(struct ac
input_sync(input);
input_report_key(input, keycode, 0);
input_sync(input);
+
+ pm_wakeup_event(&device->dev, 0);
}

acpi_bus_generate_proc_event(device, event, ++button->pushed);

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Similar topics