]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 10:26:38 +0000 (12:26 +0200)
commitf44cfa11ea339f3b7a6d2a0d91a0185ff09bdb7d
treee67d85582caa4c807522eaede890df3975092cfe
parent1ee34d11d3d67378fc74fb2eb35e4335f2c2a3ac
platform/chrome: cros_ec_proto: Send command again when timeout occurs

commit 3abc16af57c9939724df92fcbda296b25cc95168 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/chrome/cros_ec_proto.c