summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Hurst <shurst@google.com>2022-05-27 12:43:26 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-05-31 18:51:49 +0000
commit764049b86aba0235213727dfa796b390e0166c59 (patch)
treeec19db83fc5273d27c11999f1d3128c9a096a1a4
parent28d256390cfbf53f5efe2ce9f5f855f611011cde (diff)
downloadchrome-ec-764049b86aba0235213727dfa796b390e0166c59.tar.gz
ec: ite: Use EC_SPI_RX_READY macro
Using EC_SPI_RX_READY instead of EC_SPI_OLD_READY prevents the SDO line going high when the AP shuts down. BUG=b:216831450 BRANCH=none TEST=zmake testall Verified on scope that SHI_SDO does not pulse high during AP Shutdown Signed-off-by: Sam Hurst <shurst@google.com> Change-Id: I08e0045b7712944fe5a951ef88d9b5a9504a2093 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3674598 Reviewed-by: Wai-Hong Tam <waihong@google.com>
-rw-r--r--chip/it83xx/spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/it83xx/spi.c b/chip/it83xx/spi.c
index 8e417ebcbe..23885f41a3 100644
--- a/chip/it83xx/spi.c
+++ b/chip/it83xx/spi.c
@@ -63,7 +63,7 @@ enum spi_peripheral_state_machine {
} spi_peripheral_state;
static const int spi_response_state[] = {
- [SPI_STATE_READY_TO_RECV] = EC_SPI_OLD_READY,
+ [SPI_STATE_READY_TO_RECV] = EC_SPI_RX_READY,
[SPI_STATE_RECEIVING] = EC_SPI_RECEIVING,
[SPI_STATE_PROCESSING] = EC_SPI_PROCESSING,
[SPI_STATE_RX_BAD] = EC_SPI_RX_BAD_DATA,