Searched hist:b290af131b0ffef8d07cf3742ab572932e9b5f40 (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/drivers/ |
| H A D | stm32_gpio.c | b290af131b0ffef8d07cf3742ab572932e9b5f40 Thu Jun 26 15:53:04 UTC 2025 Thomas Bourgoin <thomas.bourgoin@foss.st.com> core: drivers: allow to configure RIF for GPIO not on the SoC package
The number of GPIO physically accessible depends on package. Some GPIO pins might not be accessible but it is still possible to write RIF registers to block access.
The assert(nb_rif_conf <= bank->ngpios) mandate to have less or the same number of RIF configuration than the number of GPIO pin describe with the property gpio-ranges to have the same number.
Remove the assert and replace() it with MIN() to be less restrictive.
Fixes: bd03c8c3d70f ("drivers: stm32_gpio: add stm32mp25x support") Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com> Reviewed-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
|