platform/chrome: cros-ec: Record event timestamp in the hard irq
authorGwendal Grignou <gwendal@chromium.org>
Tue, 19 Nov 2019 12:45:46 +0000 (13:45 +0100)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Thu, 21 Nov 2019 10:23:14 +0000 (11:23 +0100)
commit05a3c420eaa6857cb20afe7e3a3c39ed94a3b2c1
tree759954afc73e37fecba299388f1d6be0909a529e
parentd60ac88a62df71cb12b2d60d2dae5658fb4eab43
platform/chrome: cros-ec: Record event timestamp in the hard irq

To improve sensor timestamp precision, given EC and AP are in different
time domains, the AP needs to try to record the exact moment an event
was signalled to the AP by the EC as soon as possible after it happens.

First thing in the hard irq is the best place for this.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@kernel.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/cros_ec.c
drivers/platform/chrome/cros_ec_ishtp.c
drivers/platform/chrome/cros_ec_lpc.c
include/linux/platform_data/cros_ec_proto.h