Searched hist:"5 f27da6951db07f4f53eb2d39229b50a89dd096b" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/drivers/ |
| H A D | stm32_gpio.c | 5f27da6951db07f4f53eb2d39229b50a89dd096b Wed Oct 23 14:12:17 UTC 2024 Etienne Carriere <etienne.carriere@foss.st.com> drivers: stm32_gpio: check secure state of pinctrl states
Make STM32 GPIO driver to verify that any all pins of applied pinctrl states be accessed and has the expected secure hardening configuration when used.
Non-secure pins must have the STM32_PIN_NSEC bit set in the pin handler argument unless what the pin is expected to be secure. The driver returns an error when the expected secure state of a pin does not match its effective secure state or it cannot be accessed, unless CFG_INSECURE is enabled in which case the driver only prints an info level trace message.
If a driver attempts to consume a pinctrl with pins that do not exist, core panics.
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com> Reviewed-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
|