File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -634,6 +634,12 @@ acpi_ev_detect_gpe(struct acpi_namespace_node *gpe_device,
634
634
635
635
flags = acpi_os_acquire_lock (acpi_gbl_gpe_lock );
636
636
637
+ if (!gpe_event_info ) {
638
+ gpe_event_info = acpi_ev_get_gpe_event_info (gpe_device , gpe_number );
639
+ if (!gpe_event_info )
640
+ goto error_exit ;
641
+ }
642
+
637
643
/* Get the info block for the entire GPE register */
638
644
639
645
gpe_register_info = gpe_event_info -> register_info ;
Original file line number Diff line number Diff line change @@ -637,6 +637,28 @@ acpi_get_gpe_status(acpi_handle gpe_device,
637
637
638
638
ACPI_EXPORT_SYMBOL (acpi_get_gpe_status )
639
639
640
+ /*******************************************************************************
641
+ *
642
+ * FUNCTION: acpi_gispatch_gpe
643
+ *
644
+ * PARAMETERS: gpe_device - Parent GPE Device. NULL for GPE0/GPE1
645
+ * gpe_number - GPE level within the GPE block
646
+ *
647
+ * RETURN: None
648
+ *
649
+ * DESCRIPTION: Detect and dispatch a General Purpose Event to either a function
650
+ * (e.g. EC) or method (e.g. _Lxx/_Exx) handler.
651
+ *
652
+ ******************************************************************************/
653
+ void acpi_dispatch_gpe (acpi_handle gpe_device , u32 gpe_number )
654
+ {
655
+ ACPI_FUNCTION_TRACE (acpi_dispatch_gpe );
656
+
657
+ acpi_ev_detect_gpe (gpe_device , NULL , gpe_number );
658
+ }
659
+
660
+ ACPI_EXPORT_SYMBOL (acpi_dispatch_gpe )
661
+
640
662
/*******************************************************************************
641
663
*
642
664
* FUNCTION: acpi_finish_gpe
Original file line number Diff line number Diff line change @@ -753,6 +753,7 @@ ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
753
753
u32 gpe_number ,
754
754
acpi_event_status
755
755
* event_status ))
756
+ ACPI_HW_DEPENDENT_RETURN_VOID (void acpi_dispatch_gpe (acpi_handle gpe_device , u32 gpe_number ))
756
757
ACPI_HW_DEPENDENT_RETURN_STATUS (acpi_status acpi_disable_all_gpes (void ))
757
758
ACPI_HW_DEPENDENT_RETURN_STATUS (acpi_status acpi_enable_all_runtime_gpes (void ))
758
759
ACPI_HW_DEPENDENT_RETURN_STATUS (acpi_status acpi_enable_all_wakeup_gpes (void ))
You can’t perform that action at this time.
0 commit comments