platform/chrome: cros_ec: Call interrupt bottom half at probe time
authorGwendal Grignou <gwendal@chromium.org>
Fri, 22 Jan 2021 05:46:37 +0000 (21:46 -0800)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Fri, 22 Jan 2021 07:50:27 +0000 (08:50 +0100)
commit4daeb395f1754340927d8d58269593e4e3b6afcd
tree73301a11fe0b61b5c15509fbc26846ad6a3e0a13
parent24c69043be1725606e876b47d496a0f9f87d176a
platform/chrome: cros_ec: Call interrupt bottom half at probe time

While the AP was powered off, the EC may have send messages.
If the message is not serviced within 3s, the EC stops sending message.
Unlock the EC by purging stale messages at probe time.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Link: https://lore.kernel.org/r/20210122054637.1422289-3-gwendal@chromium.org
drivers/platform/chrome/cros_ec.c