mirror of
https://github.com/openharmony/device_soc_st.git
synced 2026-07-19 19:13:35 -04:00
!42 optimize cs keeping logic for spi transfer
Merge pull request !42 from NickYang/master
This commit is contained in:
@@ -578,7 +578,7 @@ static int32_t Mp1xxSpiTransferOneMessage(struct Mp1xxSpiCntlr *stm32mp1, struct
|
||||
}
|
||||
|
||||
ret = Mp1xxSpiTxRx(stm32mp1, msg);
|
||||
if (ret || msg->csChange) {
|
||||
if (ret || msg->keepCs == 0) {
|
||||
Mp1xxSpiSetCs(stm32mp1, stm32mp1->curCs, SPI_CS_INACTIVE);
|
||||
}
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user