Skip to content

Conversation

jhedberg
Copy link
Member

@jhedberg jhedberg commented Oct 1, 2025

#87427 caused some CI failures in main due some drivers still using the SPI macros in a deprecated way, and actually SPI_DT_IODEV_DEFINE() not having the deprecation warning support. This PR tries to address both issues.

The delay parameter was removed from this macro, so don't pass it.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
Commit a60f93d removed the delay parameter
from various SPI macros, but aimed to retain a clean migration path by
throwing a deprecation warning when the parameter is still passed. However,
the commit failed to have this feature included in the SPI_DT_IODEV_DEFINE
macro. This commit should fix the issue.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
decsny
decsny previously approved these changes Oct 1, 2025
Copy link
Member

@decsny decsny left a comment

Choose a reason for hiding this comment

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

yeah sorry, it was taking forever to get reviews and stuff kept merging in the meantime, i couldnt keep up. looks like this driver is newly added yesterday right before the spi PR was merged

ubieda
ubieda previously approved these changes Oct 1, 2025
This macro doesn't accept a delay parameter anymore (well, it does, but
it's deprecated and will trigger build warnings). Just remove it from the
places that were still passing it.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
@jhedberg jhedberg dismissed stale reviews from ubieda and decsny via 5f9f818 October 1, 2025 13:38
@sylvioalves
Copy link
Contributor

@jhedberg it is good now.

Copy link

sonarqubecloud bot commented Oct 1, 2025

@jhedberg jhedberg merged commit ca1ee72 into zephyrproject-rtos:main Oct 1, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Display area: GPIO area: Sensors Sensors area: SPI SPI bus Hotfix Fix for issues blocking development, i.e. CI issues, tests failing in CI, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants