Skip to content

Conversation

@anangl
Copy link
Contributor

@anangl anangl commented Jul 29, 2025

In Single IO mode, where the clock stretching feature is not available, the RX FIFO could get overflowed if the TX FIFO was filled with more dummy bytes than the RX FIFO could receive data items at a given moment. Such problem could be quite easy hit on nRF54H20, for example for longer RX transfers (like 8 kB) at 8 MHz.
This commit limits accordingly the number of dummy bytes that can be enqueued in the TX FIFO.

Upstream PR #: 93777

@anangl anangl force-pushed the mspi_dw_prevent_rx_fifo_overflow_ncs branch from 83871a1 to 47561da Compare July 31, 2025 06:31
@anangl anangl changed the title [nrf fromlist] drivers: mspi_dw: Prevent RX FIFO overflows in Single IO mode [nrf fromtree] drivers: mspi_dw: Prevent RX FIFO overflows in Single IO mode Jul 31, 2025
…IO mode

In Single IO mode, where the clock stretching feature is not available,
the RX FIFO could get overflowed if the TX FIFO was filled with more
dummy bytes than the RX FIFO could receive data items at a given moment.
Such problem could be quite easy hit on nRF54H20, for example for longer
RX transfers (like 8 kB) at 8 MHz.
This commit limits accordingly the number of dummy bytes that can be
enqueued in the TX FIFO.

Signed-off-by: Andrzej Głąbek <[email protected]>
(cherry picked from commit 7b6ba5c)
@anangl anangl force-pushed the mspi_dw_prevent_rx_fifo_overflow_ncs branch from 47561da to d808da1 Compare July 31, 2025 08:03
@anangl
Copy link
Contributor Author

anangl commented Jul 31, 2025

Rebased.

@anangl anangl merged commit 2b9c51b into nrfconnect:main Jul 31, 2025
18 checks passed
@anangl anangl deleted the mspi_dw_prevent_rx_fifo_overflow_ncs branch July 31, 2025 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants