From: Andy Shevchenko Date: Mon, 17 Oct 2022 17:06:00 +0000 (+0300) Subject: gpio: exar: Allow IO port access X-Git-Tag: v6.6.7~3894^2~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4e83d369015e3045418ca86984c3cd8dcf5a365;p=platform%2Fkernel%2Flinux-starfive.git gpio: exar: Allow IO port access It's possible that PCI device can provide an IO port resource for the device. regmap MMIO currently uses MMIO by default. With an additional flag we enable support for IO port accesses. Signed-off-by: Andy Shevchenko Acked-by: Linus Walleij Acked-by: William Breathitt Gray Signed-off-by: Bartosz Golaszewski --- diff --git a/drivers/gpio/gpio-exar.c b/drivers/gpio/gpio-exar.c index 482f678..df1bdaa 100644 --- a/drivers/gpio/gpio-exar.c +++ b/drivers/gpio/gpio-exar.c @@ -141,6 +141,7 @@ static const struct regmap_config exar_regmap_config = { .name = "exar-gpio", .reg_bits = 16, .val_bits = 8, + .io_port = true, }; static int gpio_exar_probe(struct platform_device *pdev)