[PATCH 2/3] gpio: Verify validity of pin offsets from device trees

Simon Glass sjg at chromium.org
Thu Sep 30 06:08:53 CEST 2021


On Sat, 11 Sept 2021 at 16:06, Samuel Holland <samuel at sholland.org> wrote:
>
> Translation of an OF GPIO specifier should fail if the pin offset is
> larger than the number of pins in the GPIO bank.
>
> Signed-off-by: Samuel Holland <samuel at sholland.org>
> ---
>
>  drivers/gpio/gpio-uclass.c | 4 ++++
>  1 file changed, 4 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>

update gpio test?


More information about the U-Boot mailing list