Skip to content
Commit 5a279d93 authored by Etienne Carriere's avatar Etienne Carriere Committed by Benjamin Cabé
Browse files

drivers: counter: stm32: refcounter for Backup domain accesses



Use recently added SoCs functions to request access to SoC backup
domain resources These function use a reference counter to track these
request and ensure the resources are accessible as long as at least a
consumer requires access. When we're done accessing RTC registers and
other protected resource, release the access refcount.

By the way, simplify rtc_stm32_read() when COUNTER_NO_DATE is defined
that used a useless extra local variable.

By the way, correct stm32_hsem.h header file inclusion that requires
brackets (<>) delimiters, not double quotes, as per convention header
location.

Fixes issue 90942.

Signed-off-by: default avatarEtienne Carriere <etienne.carriere@foss.st.com>
parent c99715a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment