Re: [PATCH v3 2/2] platform/chrome: Add support for v1 of host sleep event

From: Lee Jones
Date: Wed May 08 2019 - 03:11:13 EST


On Wed, 03 Apr 2019, Evan Green wrote:

> Add support in code for the new forms of the host sleep event.
> Detects the presence of this version of the command at runtime,
> and use whichever form the EC supports. At this time, always
> request the default timeout, and only report the failing response
> via a WARN_ONCE(). Future versions could accept the sleep parameter
> from outside the driver, and return the response information to
> usermode or elsewhere.
>
> Signed-off-by: Evan Green <evgreen@xxxxxxxxxxxx>
>
> ---
>
> Changes in v3:
> - Consolidated boolean logic for host_sleep_v1 (Guenter)
>
> Changes in v2:
> - Removed unnecessary version assignment (Guenter)
> - Changed WARN to WARN_ONCE (Guenter)
> - Fixed C code to use anonymous unions
> - insize is only bigger for resume events.
>
> drivers/mfd/cros_ec.c | 39 +++++++++++++++++++++----
> drivers/platform/chrome/cros_ec_proto.c | 6 ++++
> include/linux/mfd/cros_ec.h | 2 ++
> 3 files changed, 42 insertions(+), 5 deletions(-)

Applied, thanks.

--
Lee Jones [æçæ]
Linaro Services Technical Lead
Linaro.org â Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog