Re: [PATCH] pinctrl: microchip-sgpio: Fix support for regmap

From: Steen.Hegelund
Date: Thu Jan 27 2022 - 07:43:07 EST


Good catch Horatiu.

BR
Steen

Acked-by: Steen Hegelund <Steen.Hegelund@xxxxxxxxxxxxx>

On Tue, 2022-01-25 at 17:12 +0100, Horatiu Vultur wrote:
> Initially the driver accessed the registers using u32 __iomem but then
> in the blamed commit it changed it to use regmap. The problem is that now
> the offset of the registers is not calculated anymore at word offset but
> at byte offset. Therefore make sure to multiply the offset with word size.
>
> Fixes: 2afbbab45c261a ("pinctrl: microchip-sgpio: update to support regmap")
> Signed-off-by: Horatiu Vultur <horatiu.vultur@xxxxxxxxxxxxx>
> ---
...