Skip to content

Commit 6ffdc7e

Browse files
Marek Vasutbroonie
authored andcommitted
regcache: Demote defaults readback from HW to debug print
Since commit 632e047 ("clk: rs9: Fix suspend/resume"), the clk-renesas-pcie-9series driver produces the following print in kernel log on boot: " clk-renesas-pcie-9series 8-0068: No cache defaults, reading back from HW " This is caused by the presence of .num_reg_defaults_raw in its struct regmap_config, without a matching .reg_defaults_raw table of built-in register default values. This configuration is valid, and causes the regcache code to read the default register settings from the hardware, which is a valid behavior for this particular chip. In fact, this configuration is more common than configuration with .reg_defaults_raw built-in register defaults. Do not warn about the read of default values being read from hardware, as that is too strong and seems unnecessary, turn the warning into a debug print. Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Link: https://patch.msgid.link/20260121234309.178391-1-marek.vasut+renesas@mailbox.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent dccc66b commit 6ffdc7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/base/regmap/regcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static int regcache_hw_init(struct regmap *map)
7373

7474
if (!map->reg_defaults_raw) {
7575
bool cache_bypass = map->cache_bypass;
76-
dev_warn(map->dev, "No cache defaults, reading back from HW\n");
76+
dev_dbg(map->dev, "No cache defaults, reading back from HW\n");
7777

7878
/* Bypass the cache access till data read from HW */
7979
map->cache_bypass = true;

0 commit comments

Comments
 (0)