Skip to content

Conversation

@ubieda
Copy link
Member

@ubieda ubieda commented Feb 17, 2025

Description

This patch fixes transaction op items not performed within a single SPI transfer. This is common for Write + Read commands, that depend on the transfer maintained until the end, otherwise the context will be lost.

Fixes #85896

@ubieda ubieda changed the title spi_rtio: fix transactions for default handler spi_rtio: fix OP Transactions for Default SPI RTIO Handler Feb 17, 2025
@ubieda ubieda changed the title spi_rtio: fix OP Transactions for Default SPI RTIO Handler spi_rtio: fix OP Transactions for Default SPI RTI Feb 17, 2025
@ubieda ubieda changed the title spi_rtio: fix OP Transactions for Default SPI RTI spi_rtio: fix OP Transactions for Default SPI RTIO Feb 17, 2025
This patch fixes transaction op items not performed within a single
SPI transfer. This is common for Write + Read commands, that depend on
the CS kept asserted until the end, otherwise the context will be lost.
A similar fix was applied to i2c_rtio_default on zephyrproject-rtos#79890.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
@ubieda ubieda force-pushed the fix-spi-rtio-transactions branch from 8d4ffc7 to 8bcc347 Compare February 17, 2025 19:55
@ubieda ubieda added the backport v4.0-branch Backport to the v4.0-branch label Feb 17, 2025
@ubieda ubieda changed the title spi_rtio: fix OP Transactions for Default SPI RTIO spi_rtio: fix Transaction OPs for Default SPI RTIO Feb 17, 2025
@ubieda ubieda marked this pull request as ready for review February 17, 2025 21:21
@zephyrbot zephyrbot added the area: SPI SPI bus label Feb 17, 2025
@ubieda ubieda added this to the v4.1.0 milestone Feb 17, 2025
@ubieda ubieda requested a review from bperseghetti February 17, 2025 21:22
@teburd teburd added the bug The issue is a bug, or the PR is fixing a bug label Feb 17, 2025
@ubieda
Copy link
Member Author

ubieda commented Feb 20, 2025

@tbursztyka could you take a look?

Copy link
Contributor

@tbursztyka tbursztyka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sound to me

@kartben kartben merged commit b5ca5b7 into zephyrproject-rtos:main Feb 20, 2025
33 checks passed
ubieda added a commit to croxel/zephyr that referenced this pull request Apr 7, 2025
Loopback test requires this in order to properly execute half
transactions. Otherwise, testsuite fails.

It was overlooked when fixing zephyrproject-rtos#85894.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
kartben pushed a commit that referenced this pull request Apr 9, 2025
Loopback test requires this in order to properly execute half
transactions. Otherwise, testsuite fails.

It was overlooked when fixing #85894.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
github-actions bot pushed a commit that referenced this pull request Apr 9, 2025
Loopback test requires this in order to properly execute half
transactions. Otherwise, testsuite fails.

It was overlooked when fixing #85894.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
(cherry picked from commit 6feb1c6)
kartben pushed a commit that referenced this pull request Jun 3, 2025
Loopback test requires this in order to properly execute half
transactions. Otherwise, testsuite fails.

It was overlooked when fixing #85894.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
(cherry picked from commit 6feb1c6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: SPI SPI bus backport v4.0-branch Backport to the v4.0-branch bug The issue is a bug, or the PR is fixing a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

spi_rtio: Transaction OPs not working for Default handler

6 participants