]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regcache: Demote defaults readback from HW to debug print
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 21 Jan 2026 23:42:58 +0000 (00:42 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 27 Jan 2026 12:46:17 +0000 (12:46 +0000)
commit6ffdc7eb48bd2268c37c2accad454c043b9cc987
treeb41a3e8756823cf6b232d3738176a5fa412b1660
parentdccc66b0e92d48d9a1908a3ccb8142e0ee3381f5
regcache: Demote defaults readback from HW to debug print

Since commit 632e04739c8f ("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>
drivers/base/regmap/regcache.c