Displaying 2 results from an estimated 2 matches for "pm_wakeup_ev".
2017 May 26
2
[RFC PATCH v3 5/5] ACPI: button: Always notify kernel space using _LID returning value
...t;Notify init lid state to kernel drivers after boot/resume");
/* --------------------------------------------------------------------------
FS Interface (/proc)
@@ -224,6 +227,15 @@ static void acpi_lid_notify_state(struct acpi_device *device,
if (state)
pm_wakeup_event(&device->dev, 0);
+ if (!lid_notify_init_state) {
+ /*
+ * There are cases "state" is not a _LID return value, so
+ * correct it before notification.
+ */
+ if (!bios_notify &&
+ lid_init_state != ACPI_BUTTON_LID_INIT_METHOD)
+ state = acpi_lid_evaluate_...
2017 May 29
0
[RFC PATCH v3 5/5] ACPI: button: Always notify kernel space using _LID returning value
...nel drivers after boot/resume");
>
> /* --------------------------------------------------------------------------
> FS Interface (/proc)
> @@ -224,6 +227,15 @@ static void acpi_lid_notify_state(struct acpi_device *device,
> if (state)
> pm_wakeup_event(&device->dev, 0);
>
> + if (!lid_notify_init_state) {
> + /*
> + * There are cases "state" is not a _LID return value, so
> + * correct it before notification.
> + */
> + if (!bios_notify &&
> + lid_init_state != ACPI_BUTTON_LID_INI...