regmap: mmio: Introduce IO accessors that can talk to IO port
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 8 Aug 2022 20:33:59 +0000 (23:33 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 15 Aug 2022 00:20:10 +0000 (01:20 +0100)
commit93ce557679e1cf7742ad327d40a1499e7d8535b7
tree9fecbc51d2df2443ae2d10e0156efd3578767ac1
parent159dfabd207628c983e0c3c5ef607f496ff5e6a5
regmap: mmio: Introduce IO accessors that can talk to IO port

Some users may use regmap MMIO for IO ports, and this can be done
by assigning ioreadXX()/iowriteXX() and their Big Endian counterparts
to the regmap context.

Add IO port support with a corresponding flag added.

While doing that, make sure that user won't select relaxed MMIO access
along with IO port because the latter have no relaxed variants.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: William Breathitt Gray <william.gray@linaro.org>
Link: https://lore.kernel.org/r/20220808203401.35153-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-mmio.c
include/linux/regmap.h