Skip to content
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

samv7/spi: fix ifdelay setup in spi_setdelay call #15900

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michallenc
Copy link
Contributor

Summary

ifdelay description (delay between frames) matches the DLYBCT field (delay between consecutive transfers without removing chip select) much better compared to stopdelay (delay between last CLK and CS innactive). The option for stopdelay does not seem to be configurable in SAMv7 peripheral.

Impact

Should be minimal, most of the drivers do not use spi_setdelay at all and even if, this is configurable option disabled by default.

Testing

Tested with ST7789 display, the delay is set up. The delay is put between the consecutive transfers, so the effect now matches the description.

ifdelay description (delay between frames) matches the DLYBCT field
(delay between consecutive transfers without removing chip select)
much better compared to stopdelay (delay between last CLK and CS
innactive). The option for stopdelay does not seem to be configurable
in SAMv7 peripheral.

Signed-off-by: Michal Lenc <[email protected]>
@github-actions github-actions bot added Arch: arm Issues related to ARM (32-bit) architecture Size: XS The size of the change in this PR is very small labels Feb 24, 2025
@michallenc
Copy link
Contributor Author

@pkarashchenko Could you take a look? I think this makes much more sense, but I hope it won't break the behavior for someone using SPI... it shouldn't though, this call is not used that much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: arm Issues related to ARM (32-bit) architecture Size: XS The size of the change in this PR is very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant