Skip to content

Commit f03a562

Browse files
Marek Vasutbebarino
authored andcommitted
clk: si521xx: Use REGCACHE_FLAT instead of NONE
In order to reload registers into the clock generator on resume using regcache_sync(), it is necessary to select one of the regcache types which are not NONE. Since this device has some 7 registers, use the simplest one, FLAT. The regcache code complains about REGCACHE_NONE being selected and generates a WARNING, this fixes that warning. Fixes: edc1276 ("clk: si521xx: Clock driver for Skyworks Si521xx I2C PCIe clock generators") Signed-off-by: Marek Vasut <marex@denx.de> Link: https://lore.kernel.org/r/20230831181656.154750-1-marex@denx.de Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent b7b20cf commit f03a562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/clk-si521xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static int si521xx_regmap_i2c_read(void *context, unsigned int reg,
146146
static const struct regmap_config si521xx_regmap_config = {
147147
.reg_bits = 8,
148148
.val_bits = 8,
149-
.cache_type = REGCACHE_NONE,
149+
.cache_type = REGCACHE_FLAT,
150150
.max_register = SI521XX_REG_DA,
151151
.rd_table = &si521xx_readable_table,
152152
.wr_table = &si521xx_writeable_table,

0 commit comments

Comments
 (0)