platform/chrome: cros_ec_proto: Send command again when timeout occurs
authorPatryk Duda <pdk@semihalf.com>
Tue, 18 May 2021 14:07:58 +0000 (16:07 +0200)
committerBenson Leung <bleung@chromium.org>
Mon, 26 Jul 2021 23:15:55 +0000 (16:15 -0700)
commit3abc16af57c9939724df92fcbda296b25cc95168
treea5fa5873cb4a82213e84a911ff0203947c7d630d
parentd453ceb6549af8798913de6a20444cb7200fdb69
platform/chrome: cros_ec_proto: Send command again when timeout occurs

Sometimes kernel is trying to probe Fingerprint MCU (FPMCU) when it
hasn't initialized SPI yet. This can happen because FPMCU is restarted
during system boot and kernel can send message in short window
eg. between sysjump to RW and SPI initialization.

Cc: <stable@vger.kernel.org> # 4.4+
Signed-off-by: Patryk Duda <pdk@semihalf.com>
Link: https://lore.kernel.org/r/20210518140758.29318-1-pdk@semihalf.com
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/cros_ec_proto.c