]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpio: vf610: Switch to gpio-mmio
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 19 Feb 2025 21:04:34 +0000 (22:04 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 24 Feb 2025 19:49:43 +0000 (20:49 +0100)
commitda5dd31efd2465ccc9a70a85bdc325e394256689
tree2b57ec68165569f72ae066c267feccbfdf1837aa
parent2145ba374069ee8edc9d29c2a6b56fe4a28a6e2d
gpio: vf610: Switch to gpio-mmio

After adding a pinctrl flag to gpio-mmio we can use it
for driving gpio-vf610.

The existing code has the same semantics and the generic
gpio-mmio, including reading from the data out register
when the direction is set to input, and it can also handle
the absence of the direction register better than the
current driver: we get the direction from the shadow
direction registers in gpio-mmio instead.

Since gpio-mmio has an internal spinlock we can drop the
direction-protecting spinlock from the driver.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
Tested-by: Haibo Chen <haibo.chen@nxp.com>
Link: https://lore.kernel.org/r/20250219-vf610-mmio-v3-2-588b64f0b689@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/gpio-vf610.c