]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
clk: meson: a1: pll: determine maximum register in regmap config
authorDmitry Rokosov <ddrokosov@salutedevices.com>
Wed, 20 Mar 2024 15:54:46 +0000 (18:54 +0300)
committerJerome Brunet <jbrunet@baylibre.com>
Fri, 29 Mar 2024 11:07:33 +0000 (12:07 +0100)
When the max_register value is not set, the regmap debugfs 'registers'
file does not display the entire range of the regmap.

Signed-off-by: Dmitry Rokosov <ddrokosov@salutedevices.com>
Link: https://lore.kernel.org/r/20240320155512.3544-3-ddrokosov@salutedevices.com
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/meson/a1-pll.c

index 4325e8a6a3ef5ba8a1465009fa8e8be234346925..90b0aeeb049c6127bda73c993a838349a36de9bb 100644 (file)
@@ -299,6 +299,7 @@ static struct regmap_config a1_pll_regmap_cfg = {
        .reg_bits   = 32,
        .val_bits   = 32,
        .reg_stride = 4,
+       .max_register = ANACTRL_HIFIPLL_STS,
 };
 
 static struct meson_clk_hw_data a1_pll_clks = {