Re: [PATCH v2 1/2] pinctrl: ocelot: Fix the pincfg resource.

From: Michael Walle
Date: Mon Mar 07 2022 - 07:45:13 EST


> The pincfg resources are in the second memory resource. But the driver
> still tries to access the first memory resource to get the pincfg. This
> is wrong therefore fix to access the second memory resource.
>
> Reviewed-by: Colin Foster <colin.foster@xxxxxxxxxxxxxxxx>
> Fixes: ad96111e658a95 ("pinctrl: ocelot: combine get resource and ioremap into single call")
> Signed-off-by: Horatiu Vultur <horatiu.vultur@xxxxxxxxxxxxx>

There is already this patch pending, which does exactly
the same:
https://lore.kernel.org/linux-gpio/20220216082020.981797-1-michael@xxxxxxxx/

FWIW, there is also this one:
https://lore.kernel.org/linux-gpio/20220216122727.1005041-1-michael@xxxxxxxx/

-michael