Searched hist:bfc43b68e1d5d251887ff36d53e956f4a889e6b6 (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/drivers/ |
| H A D | stm32_gpio.c | bfc43b68e1d5d251887ff36d53e956f4a889e6b6 Wed Aug 28 17:16:10 UTC 2024 Gatien Chevallier <gatien.chevallier@foss.st.com> drivers: stm32_gpio: save/restore consumed GPIOs in PM sequence
Save and restore during PM suspend/resume sequences the state of the consumed GPIOs.
Consumers are expected to get their GPIOs using the DT resources hence register a PM handle when the GPIO is requested (stm32_gpio_get_dt()) so that the dependency order established during drivers initialization is satisfied during PM suspend and resume sequences. PM handle is unregistered when consumer releases the GPIO which requires the handles to be referenced in a list so that we can find it back.
Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
|