[PATCH v3 0/2] platform/chrome: cros_ec: improve probing for RWSIG

From: Dawid Niedzwiecki
Date: Fri Dec 06 2024 - 04:15:23 EST


V2 -> V3:
- Move exiting from `cros_ec_rwsig_continue` if `error_count` exceeds
`RWSIG_CONTINUE_MAX_ERRORS_IN_ROW` to the `if (rev < 0)` statement when
`error_count` is incremented.

V1 -> V2:
- Use dev_info instead of dev_warn when cros_ec_rwsig_continue returns
an error.
- Return immediately from cros_ec_rwsig_continue, if the RWSIG_ACTION
command fails itself, not SPI transaction.

Dawid Niedzwiecki (2):
platform/chrome: cros_ec: jump to RW before probing
platform/chrome: cros_ec_proto: remove unnecessary retries

drivers/platform/chrome/cros_ec.c | 5 ++
drivers/platform/chrome/cros_ec_i2c.c | 3 +-
drivers/platform/chrome/cros_ec_ishtp.c | 2 +-
drivers/platform/chrome/cros_ec_lpc.c | 2 +-
drivers/platform/chrome/cros_ec_proto.c | 69 ++++++++++++++++++---
drivers/platform/chrome/cros_ec_rpmsg.c | 2 +-
drivers/platform/chrome/cros_ec_spi.c | 2 +-
drivers/platform/chrome/cros_ec_uart.c | 2 +-
include/linux/platform_data/cros_ec_proto.h | 2 +
9 files changed, 74 insertions(+), 15 deletions(-)

--
2.47.0.338.g60cca15819-goog