]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: aspeed-sgpio: Convert IRQ functions to use llops callbacks
authorBilly Tsai <billy_tsai@aspeedtech.com>
Fri, 23 Jan 2026 09:26:29 +0000 (17:26 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Tue, 27 Jan 2026 10:17:26 +0000 (11:17 +0100)
commit43090d6993341b977ca66f4c72e776e99f7ba996
tree24896a3989318895fca4cd71bdfbec6358c472a1
parenta3d37e0cccf530a1bad377b3503d6af757f532c4
gpio: aspeed-sgpio: Convert IRQ functions to use llops callbacks

Update aspeed_sgpio_irq_handler() and aspeed_sgpio_setup_irqs() to use
the llops callbacks for register access instead of direct iowrite32().
This creates a unified hardware access layer, which is essential for
supporting SoCs with different register layouts like the AST2700.

Additionally, change the loop bounds to use ngpio instead of the static
ARRAY_SIZE(aspeed_sgpio_banks). This allows the driver to adapt to the
actual number of supported pins on the running SoC.

Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Link: https://lore.kernel.org/r/20260123-upstream_sgpio-v2-4-69cfd1631400@aspeedtech.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpio-aspeed-sgpio.c