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

2021-09-11 Thread Samuel Holland
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 --- drivers/gpio/gpio-uclass.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c inde

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

2021-10-05 Thread Tom Rini
On Sat, Sep 11, 2021 at 05:05:52PM -0500, Samuel Holland 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 > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom si

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

2021-10-05 Thread Tom Rini
On Sat, Sep 11, 2021 at 05:05:52PM -0500, Samuel Holland 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 > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom si

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

2021-09-29 Thread Simon Glass
On Sat, 11 Sept 2021 at 16:06, Samuel Holland 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 > --- > > drivers/gpio/gpio-uclass.c | 4 > 1 file changed, 4 insertions(+) Rev