]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: ocelot: Fix GPIO interrupt decoding on Jaguar2
authorLars Povlsen <lars.povlsen@microchip.com>
Wed, 13 May 2020 12:55:21 +0000 (14:55 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 18 May 2020 07:31:27 +0000 (09:31 +0200)
commitbf91195188f35da2d37b17adabdfde8bb8baad31
tree4f87ab4a5687f6eabc50e5f6b89040fbf3dd04c5
parent385ed9e6f81a36df5d10a4fae4bbeed95f335310
pinctrl: ocelot: Fix GPIO interrupt decoding on Jaguar2

This fixes a problem with using the GPIO as an interrupt on Jaguar2
(and similar), as the register layout of the platforms with 64 GPIO's
are pairwise, such that the original offset must be multiplied with
the platform stride.

Fixes: 1ad2d4169ae7 pinctrl: ocelot: add MSCC Jaguar2 support.
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com>
Link: https://lore.kernel.org/r/20200513125532.24585-4-lars.povlsen@microchip.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-ocelot.c