Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Gwendal Grignou and committed by
Enric Balletbo i Serra
4daeb395 24c69043

+7
+7
drivers/platform/chrome/cros_ec.c
··· 283 283 284 284 dev_info(dev, "Chrome EC device registered\n"); 285 285 286 + /* 287 + * Unlock EC that may be waiting for AP to process MKBP events. 288 + * If the AP takes to long to answer, the EC would stop sending events. 289 + */ 290 + if (ec_dev->mkbp_event_supported) 291 + cros_ec_irq_thread(0, ec_dev); 292 + 286 293 return 0; 287 294 } 288 295 EXPORT_SYMBOL(cros_ec_register);