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

drivers: sensor: stm32_temp/vbat/vref: ensure the ADC is not suspended #72989

Merged
merged 1 commit into from
May 22, 2024

Conversation

aurel32
Copy link
Collaborator

@aurel32 aurel32 commented May 19, 2024

The STM32 temperature, battery and voltage reference sensors needs to write the ADC common registers to enable the corresponding ADC features. For that we need to ensure that the ADC is not suspended by using the pm_device_runtime_get/put methods.

This is required for the sensors to keep working after PR like #72809.

The STM32 temperature, battery and voltage reference sensors needs to
write the ADC common registers to enable the corresponding ADC features.
For that we need to ensure that the ADC is not suspended by using the
pm_device_runtime_get/put methods.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

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

That was a busy week end for you :).

Thanks again for all the work.

@nashif nashif merged commit 2194331 into zephyrproject-rtos:main May 22, 2024
28 checks passed
@aurel32 aurel32 deleted the stm32-sensors-pm-runtime branch May 22, 2024 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants