diff options
| author | Pi-Hsun Shih <pihsun@chromium.org> | 2020-02-14 16:26:38 +0800 |
|---|---|---|
| committer | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2020-03-02 11:04:04 +0100 |
| commit | f775ac78fcfc6bdc96bdda07029d11f2a5e84869 (patch) | |
| tree | 7cce4a5be5e5b40d43071d069b34527143904014 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | platform/chrome: cros_ec: Query EC protocol version if EC transitions between... (diff) | |
| download | linux-f775ac78fcfc6bdc96bdda07029d11f2a5e84869.tar.gz linux-f775ac78fcfc6bdc96bdda07029d11f2a5e84869.zip | |
platform/chrome: cros_ec_rpmsg: Fix race with host event
Host event can be sent by remoteproc by any time, and
cros_ec_rpmsg_callback would be called after cros_ec_rpmsg_create_ept.
But the cros_ec_device is initialized after that, which cause host event
handler to use cros_ec_device that are not initialized properly yet.
Fix this by don't schedule host event handler before cros_ec_register
returns. Instead, remember that we have a pending host event, and
schedule host event handler after cros_ec_register.
Fixes: 71cddb7097e2 ("platform/chrome: cros_ec_rpmsg: Fix race with host command when probe failed.")
Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
