Re: [PATCH v4 4/7] pinctrl: renesas: rzg2l: Update OEN pin validation to use exact match
From: Geert Uytterhoeven
Date: Wed May 06 2026 - 11:53:30 EST
On Thu, 30 Apr 2026 at 11:34, Biju <biju.das.au@xxxxxxxxx> wrote:
> From: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
>
> The RZ/G2L SoC uses pin 0 from a port for OEN while RZ/G3L uses pin 1. The
> existing greater-than comparison against oen_max_pin in
> rzg2l_pin_to_oen_bit() would incorrectly accept any pin below that value
> rather than enforcing the single valid OEN pin for each SoC. Replace the
> range check with an exact equality test so that only the designated OEN
> pin is accepted.
>
> Signed-off-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
i.e. will queue in renesas-pinctrl for v7.2.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds