Skip to content

spi: nrfx_spim: initial pin state to SLEEP, not DEFAULT #93238

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

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

Conversation

JordanYates
Copy link
Contributor

Configure the initial pin state of the SPIM peripheral to SLEEP, not DEFAULT. This fixes the pins being configured in DEFAULT until the first time the interface is used if zephyr,pm-device-runtime-auto is enabled.

Configure the initial pin state of the SPIM peripheral to SLEEP, not
DEFAULT. This fixes the pins being configured in DEFAULT until the first
time the interface is used if `zephyr,pm-device-runtime-auto` is
enabled.

Signed-off-by: Jordan Yates <jordan@embeint.com>
Copy link

Copy link
Member

@anangl anangl left a comment

Choose a reason for hiding this comment

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

Could you make the same correction in spi_nrfx_spi.c as well?

@JordanYates
Copy link
Contributor Author

Could you make the same correction in spi_nrfx_spi.c as well?

spi_nrfx_spi.c does not use pm_device_driver_init so the same one-line change cannot be used there.
Updating that driver is a larger piece of work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: SPI SPI bus platform: nRF Nordic nRFx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants