summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorSam Hurst <shurst@google.com>2022-06-01 18:06:44 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-02 15:12:36 +0000
commit030d9058d426a94ef46c9963f1ed005987ec6193 (patch)
tree587edb5ba7f08eb4c7ab523c3f442280efb9fdc1 /chip
parent5ed38f5accfbd77fb432ad78efdbf07689c4be9b (diff)
downloadchrome-ec-030d9058d426a94ef46c9963f1ed005987ec6193.tar.gz
ec: stm32: 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=make -j buildall Verified on scope that SHI_SDO does not pulse high during AP Shutdown Signed-off-by: Sam Hurst <shurst@google.com> Change-Id: Idb0d125969bc0de91c20229b0e3f85303ebfebdf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3685849 Reviewed-by: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'chip')
-rw-r--r--chip/stm32/spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/spi.c b/chip/stm32/spi.c
index 3dbbbc4fa9..268b7880e6 100644
--- a/chip/stm32/spi.c
+++ b/chip/stm32/spi.c
@@ -341,7 +341,7 @@ static void setup_for_transaction(void)
/* Ready to receive */
state = SPI_STATE_READY_TO_RX;
- tx_status(EC_SPI_OLD_READY);
+ tx_status(EC_SPI_RX_READY);
#ifdef CHIP_FAMILY_STM32H7
spi->cr1 |= STM32_SPI_CR1_SPE;