]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: ocelot: Fix pincfg
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Wed, 13 Jul 2022 19:37:50 +0000 (21:37 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 18 Jul 2022 09:22:43 +0000 (11:22 +0200)
commit5bd03672cad480619cb16423cf8d6950a2a16d34
treef3c6aea7b34a68cc325dfa89b0a3a84475dc1cfd
parent2fff94c81457ae43d009c9cc6cc03949a0a59af9
pinctrl: ocelot: Fix pincfg

The blamed commit changed to use regmaps instead of __iomem. But it
didn't update the register offsets to be at word offset, so it uses byte
offset.
Another issue with the same commit is that it has a limit of 32 registers
which is incorrect. The sparx5 has 64 while lan966x has 77.

Fixes: 941cc7902a8a ("pinctrl: ocelot: convert pinctrl to regmap")
Acked-by: Colin Foster <colin.foster@in-advantage.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Link: https://lore.kernel.org/r/20220713193750.4079621-3-horatiu.vultur@microchip.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-ocelot.c