Displaying 2 results from an estimated 2 matches for "acpi_button_lid_init_method".
2017 May 26
2
[RFC PATCH v3 5/5] ACPI: button: Always notify kernel space using _LID returning value
...te(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_state(device);
+ }
acpi_lid_notifier_call(device, state);
}
@@ -572,10 +584,10 @@ static int param_set_lid_init_state(const char *val, struct kernel_param *kp)
if (!strncmp(val, "open", sizeof("open") - 1)) {
lid_init_state = ACPI_BUTTO...
2017 May 29
0
[RFC PATCH v3 5/5] ACPI: button: Always notify kernel space using _LID returning value
...gt; 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_state(device);
> + }
> acpi_lid_notifier_call(device, state);
> }
>
> @@ -572,10 +584,10 @@ static int param_set_lid_init_state(const char *val, struct kernel_param *kp)
>
> if (!strncmp(val, "open", sizeof("open"...