diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2017-02-14 22:58:01 +0300 |
---|---|---|
committer | Benson Leung <bleung@chromium.org> | 2017-06-27 18:22:39 +0300 |
commit | d4da97e59e1004aa1a15dd75469def20cd84ab99 (patch) | |
tree | 7aac14a0e6eb45f8d0db5e65db435d80e6483929 /drivers/nfc/nxp-nci | |
parent | a27b8f31cb7929bfb8dc6ca3e6b7a0a39609d7f3 (diff) | |
download | linux-d4da97e59e1004aa1a15dd75469def20cd84ab99.tar.xz |
cros_ec: Fix deadlock when EC is not responsive at probe
When the EC is not responsive at probe, we try to get basic information
(protocol to use) later on through cros_xfer_cmd() call.
This patch makes sure there is no deadlock when re-probing the EC by
replacing call to cros_xfer_cmd() with send_command() in the function
cros_ec_get_host_command_version_mask(). Also, this patch adds the
function header indicating it must be called protected.
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
Diffstat (limited to 'drivers/nfc/nxp-nci')
0 files changed, 0 insertions, 0 deletions