]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: microchip-sgpio: Fix support for regmap
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Mon, 31 Jan 2022 08:52:01 +0000 (09:52 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 31 Jan 2022 11:07:31 +0000 (12:07 +0100)
commitdd038f841b17e0d5709c3826025c0d9f6114ca6a
tree46a1d79638c2eeb202d5fba81f511375d0fd017f
parenta8daa7beb0d9eece3a2f23230c455b32ac8a6360
pinctrl: microchip-sgpio: Fix support for regmap

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.

Acked-by: Steen Hegelund <Steen.Hegelund@microchip.com>
Reviewed-by: Colin Foster <colin.foster@in-advantage.com>
Fixes: 7cf05221b86f82 ("pinctrl: microchip-sgpio: update to support regmap")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220131085201.307031-1-horatiu.vultur@microchip.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-microchip-sgpio.c