Skip to content

Commit 43dfb59

Browse files
ananglcarlescufi
authored andcommitted
drivers: mspi_sqspi: Use TX direction when there is no data to transfer
Set by default the `dir` field in the `nrfx_qspi2_xfer_t` structure to `NRFX_QSPI2_XFER_DIR_TX` so that for transfers with no data the TX direction is used. Leaving this field initialized to 0, what means `NRFX_QSPI2_XFER_DIR_TXRX`, may cause problems with sQSPI v0.1.0 - an extra pulse on the CS line may appear for SCK frequencies > 8MHz and this can disturb further communication. Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent f14b49f commit 43dfb59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/mspi/mspi_sqspi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ static int process_packet(const struct device *dev,
288288
{
289289
const struct mspi_sqspi_config *dev_config = dev->config;
290290
nrfx_qspi2_xfer_t qspi2_xfer = {
291+
/* Use TX direction when there is no data to transfer. */
292+
.dir = NRFX_QSPI2_XFER_DIR_TX,
291293
.cmd = packet->cmd,
292294
.address = packet->address,
293295
.data_length = packet->num_bytes,

0 commit comments

Comments
 (0)