Skip to content

spi_nxp_lpspi: Fix underflow in lpspi sck calculation #93523

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Finomnis
Copy link
Contributor

Fixes #93519.

If desired_delay_ns is 0, it is much saner to set the delay to 0x00 than to underflow and set it to 0xff, which is the current behavior.

If `desired_delay_ns` is `0`, it is much saner to set the delay to `0x00`
than to underflow and set it to `0xff`, which is the current behavior.

Signed-off-by: Martin Stumpf <finomnis@gmail.com>
Copy link

@decsny decsny added the backport v4.2-branch Request backport to the v4.2-branch label Jul 22, 2025
@fabiobaltieri fabiobaltieri merged commit 860f9c8 into zephyrproject-rtos:main Jul 24, 2025
39 of 41 checks passed
@Finomnis Finomnis deleted the fix_lpspi_sck_overflow branch July 25, 2025 09:29
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.2-branch Request backport to the v4.2-branch platform: NXP Drivers NXP Semiconductors, drivers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

drivers: nxp_lpspi: Large performance degradation
7 participants