Re: [PATCH v3] platform/chrome: cros_ec: Notify the PM of wake events during resume

From: Prashant Malani
Date: Tue Sep 13 2022 - 14:11:36 EST


HI Jameson,

On Tue, Sep 13, 2022 at 7:55 AM Jameson Thies <jthies@xxxxxxxxxx> wrote:
>
> cros_ec_handle_event in the cros_ec driver can notify the PM of wake
> events. When a device is suspended, cros_ec_handle_event will not check
> MKBP events. Instead, received MKBP events are checked during resume by
> cros_ec_report_events_during_suspend. But
> cros_ec_report_events_during_suspend cannot notify the PM if received
> events are wake events, causing wake events to not be reported if
> received while the device is suspended.
>
> Update cros_ec_report_events_during_suspend to notify the PM of wake
> events during resume by calling pm_wakeup_event.
>
> Signed-off-by: Jameson Thies <jthies@xxxxxxxxxx>
Although I've already provided the tag, here it is again:

Reviewed-by: Prashant Malani <pmalani@xxxxxxxxxxxx>