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 <keithshort@google.com>
This commit is contained in:
parent
b7f8365a57
commit
f7005599ff
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue