Merge branch 'acpica'
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 Mar 2020 12:53:36 +0000 (14:53 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 Mar 2020 12:53:36 +0000 (14:53 +0200)
* acpica:
  ACPICA: Update version to 20200214
  ACPICA: Fix a couple of typos
  ACPICA: use acpi_size instead of u32 for prefix_path_length
  ACPICA: cast length arguement to acpi_ns_build_normalized_path() as u32
  ACPICA: cast the result of the pointer difference to u32
  ACPICA: Table Manager: Update comments in a function header
  ACPICA: Enable sleep button on ACPI legacy wake
  ACPICA: Fix a comment "enable" fixed events -> "disable" all fixed events.
  ACPICA: ASL-ASL+ converter: make root file a parameter for cv_init_file_tree
  ACPICA: ASL-ASL+ converter: remove function parameters from cv_init_file_tree()

1  2 
drivers/acpi/acpica/evevent.c
include/acpi/acpixf.h

index 789d5e920aaf7084058512e09467b554a9b5120d,89391938193d959f29d364aa802e39ae90b279a6..9efca54c51ac50c6638f0f19c41a8f3efb8ef696
@@@ -130,7 -130,7 +130,7 @@@ static acpi_status acpi_ev_fixed_event_
  
        /*
         * Initialize the structure that keeps track of fixed event handlers and
-        * enable the fixed events.
+        * disable all of the fixed events.
         */
        for (i = 0; i < ACPI_NUM_FIXED_EVENTS; i++) {
                acpi_gbl_fixed_event_handlers[i].handler = NULL;
@@@ -265,49 -265,4 +265,49 @@@ static u32 acpi_ev_fixed_event_dispatch
                 handler) (acpi_gbl_fixed_event_handlers[event].context));
  }
  
 +/*******************************************************************************
 + *
 + * FUNCTION:    acpi_any_fixed_event_status_set
 + *
 + * PARAMETERS:  None
 + *
 + * RETURN:      TRUE or FALSE
 + *
 + * DESCRIPTION: Checks the PM status register for active fixed events
 + *
 + ******************************************************************************/
 +
 +u32 acpi_any_fixed_event_status_set(void)
 +{
 +      acpi_status status;
 +      u32 in_status;
 +      u32 in_enable;
 +      u32 i;
 +
 +      status = acpi_hw_register_read(ACPI_REGISTER_PM1_ENABLE, &in_enable);
 +      if (ACPI_FAILURE(status)) {
 +              return (FALSE);
 +      }
 +
 +      status = acpi_hw_register_read(ACPI_REGISTER_PM1_STATUS, &in_status);
 +      if (ACPI_FAILURE(status)) {
 +              return (FALSE);
 +      }
 +
 +      /*
 +       * Check for all possible Fixed Events and dispatch those that are active
 +       */
 +      for (i = 0; i < ACPI_NUM_FIXED_EVENTS; i++) {
 +
 +              /* Both the status and enable bits must be on for this event */
 +
 +              if ((in_status & acpi_gbl_fixed_event_info[i].status_bit_mask) &&
 +                  (in_enable & acpi_gbl_fixed_event_info[i].enable_bit_mask)) {
 +                      return (TRUE);
 +              }
 +      }
 +
 +      return (FALSE);
 +}
 +
  #endif                                /* !ACPI_REDUCED_HARDWARE */
diff --combined include/acpi/acpixf.h
index 8e8be989c2a6f56e9d503580493b8ddb8b7593a5,e4faf1a9c8fb2ab098563cddcfb84522db96666e..f7fd67dafd36358fb7a256f1ea8745b27e6015e2
@@@ -12,7 -12,7 +12,7 @@@
  
  /* Current ACPICA subsystem version in YYYYMMDD format */
  
- #define ACPI_CA_VERSION                 0x20200110
+ #define ACPI_CA_VERSION                 0x20200214
  
  #include <acpi/acconfig.h>
  #include <acpi/actypes.h>
@@@ -753,7 -753,6 +753,7 @@@ ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_st
  ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enable_all_runtime_gpes(void))
  ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enable_all_wakeup_gpes(void))
  ACPI_HW_DEPENDENT_RETURN_UINT32(u32 acpi_any_gpe_status_set(void))
 +ACPI_HW_DEPENDENT_RETURN_UINT32(u32 acpi_any_fixed_event_status_set(void))
  
  ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
                                acpi_get_gpe_device(u32 gpe_index,