From f7005599ff0238f2e41e29b83c389a0bd42639c0 Mon Sep 17 00:00:00 2001 From: Keith Short Date: Mon, 6 Dec 2021 12:07:13 -0700 Subject: [PATCH] spi: npcx_fiu: Update the SPI context Update the SPI context during all transceive functions. This fixes a deadlock where SPI transactions failed to give back the semaphore. Verified on NPCX9 based Chromebook. Signed-off-by: Keith Short --- drivers/spi/spi_npcx_fiu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi_npcx_fiu.c b/drivers/spi/spi_npcx_fiu.c index 4bb6b934c7c..88e2f5bb19a 100644 --- a/drivers/spi/spi_npcx_fiu.c +++ b/drivers/spi/spi_npcx_fiu.c @@ -77,6 +77,7 @@ static int spi_npcx_fiu_transceive(const struct device *dev, int error = 0; spi_context_lock(ctx, false, NULL, spi_cfg); + ctx->config = spi_cfg; /* * Configure UMA lock/unlock only if tx buffer set and rx buffer set