]> git.dujemihanovic.xyz Git - u-boot.git/commit
gpio: stm32f7: Fix gpio bank hole management
authorPatrice Chotard <patrice.chotard@st.com>
Fri, 4 Jan 2019 09:55:05 +0000 (10:55 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 9 Jan 2019 12:13:32 +0000 (07:13 -0500)
commit39a8f0be2d3df589ba227310e66dca706e154920
tree44da907d86a4c537b50bf897e426bb6e2364c6d7
parent17be909a1b67e919de6fc20b23f35c66a4cdf4c6
gpio: stm32f7: Fix gpio bank hole management

In case "gpio-ranges" property is not present in device tree,
use default value for gpio_count and gpio_range.
This fixes an issue on stm32 F7 and H7 boards where "pinmux status -a"
command didn't return any pin status due to the fact that both stm32 F7
and H7 board DT doesn't use the gpio-ranges property.

Fixes: dbf928dd2634a6("gpio: stm32f7: Add gpio bank holes management")
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
drivers/gpio/stm32f7_gpio.c