[AMD Official Use Only - General] > > #include "internal.h" > > #include "sleep.h" > > > > @@ -507,6 +511,7 @@ static void acpi_pm_finish(void) > > pwr_btn_adev = > acpi_dev_get_first_match_dev(ACPI_BUTTON_HID_POWERF, > > NULL, -1); > > if (pwr_btn_adev) { > > + acpi_power_button_wakeup(pwr_btn_adev); > > Why does this need to be done from here? > > Can't the button driver itself to it? [Ken] Thanks for reminding. It does work in button driver itself too. This patch just tried to make sure "wakeup" event is reported after pwr_btn_event_pending becomes false by adding codes here. But in fact, Reporting "wakeup" event in button driver itself also can support same sequence. I will submit a new patch later.