]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
regmap: Annotate that MMIO implies fast IO
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 25 Jul 2025 11:03:27 +0000 (13:03 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 25 Jul 2025 12:44:33 +0000 (13:44 +0100)
Document that using the MMIO helpers will automatically enable the
'fast_io' parameter. This makes the used locking scheme more transparent
and avoids superfluous setting of this parameter in drivers.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://patch.msgid.link/20250725110337.4303-2-wsa+renesas@sang-engineering.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/regmap.h

index 02b83f5499b8acd94cd504300219c30535a1a7d7..4e1ac1fbcec4398bb877a1e5e67ee998d92f8390 100644 (file)
@@ -913,7 +913,7 @@ int regmap_attach_dev(struct device *dev, struct regmap *map,
  * @config: Configuration for register map
  *
  * The return value will be an ERR_PTR() on error or a valid pointer to
- * a struct regmap.
+ * a struct regmap. Implies 'fast_io'.
  */
 #define regmap_init_mmio_clk(dev, clk_id, regs, config)                        \
        __regmap_lockdep_wrapper(__regmap_init_mmio_clk, #config,       \
@@ -927,7 +927,7 @@ int regmap_attach_dev(struct device *dev, struct regmap *map,
  * @config: Configuration for register map
  *
  * The return value will be an ERR_PTR() on error or a valid pointer to
- * a struct regmap.
+ * a struct regmap. Implies 'fast_io'.
  */
 #define regmap_init_mmio(dev, regs, config)            \
        regmap_init_mmio_clk(dev, NULL, regs, config)
@@ -1138,7 +1138,7 @@ bool regmap_ac97_default_volatile(struct device *dev, unsigned int reg);
  *
  * The return value will be an ERR_PTR() on error or a valid pointer
  * to a struct regmap.  The regmap will be automatically freed by the
- * device management code.
+ * device management code. Implies 'fast_io'.
  */
 #define devm_regmap_init_mmio_clk(dev, clk_id, regs, config)           \
        __regmap_lockdep_wrapper(__devm_regmap_init_mmio_clk, #config,  \
@@ -1153,7 +1153,7 @@ bool regmap_ac97_default_volatile(struct device *dev, unsigned int reg);
  *
  * The return value will be an ERR_PTR() on error or a valid pointer
  * to a struct regmap.  The regmap will be automatically freed by the
- * device management code.
+ * device management code. Implies 'fast_io'.
  */
 #define devm_regmap_init_mmio(dev, regs, config)               \
        devm_regmap_init_mmio_clk(dev, NULL, regs, config)