Re: [PATCH] mfd: cros_ec: Add support for MKBP more event flags

From: Lee Jones
Date: Mon Dec 03 2018 - 06:08:17 EST


On Thu, 29 Nov 2018, egranata@xxxxxxxxxx wrote:

> From: Enrico Granata <egranata@xxxxxxxxxxxx>
>
> The ChromeOS EC has support for signaling to the host that
> a single IRQ can serve multiple MKBP events.
>
> Doing this serves an optimization purpose, as it minimizes the
> number of round-trips into the interrupt handling machinery, and
> it proves beneficial to sensor timestamping as it keeps the desired
> synchronization of event times between the two processors.
>
> This patch adds kernel support for this EC feature, allowing the
> ec_irq to loop until all events have been served.
>
> Signed-off-by: Enrico Granata <egranata@xxxxxxxxxxxx>
> ---
> drivers/mfd/cros_ec.c | 20 +++++++++++++--

Looks fine, in principle:

For my own reference:
Acked-for-MFD-by: Lee Jones <lee.jones@xxxxxxxxxx>

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