Re: [PATCH] gpio: pisosr: Read "ngpios" as u32

From: Linus Walleij

Date: Fri Jun 12 2026 - 18:24:13 EST


On Fri, Jun 12, 2026 at 11:52 PM Rob Herring (Arm) <robh@xxxxxxxxxx> wrote:

> The generic "ngpios" property is encoded as a normal uint32 cell. The
> pisosr driver stores it in the gpio_chip field, but reading it with a
> u16 helper does not match the DT property encoding.
>
> Read "ngpios" as u32 and keep the existing assignment to the chip
> field.
>
> Assisted-by: Codex:gpt-5-5
> Signed-off-by: Rob Herring (Arm) <robh@xxxxxxxxxx>

Patch applied.

Yours,
Linus Walleij