mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-29 21:33:00 +01:00
clk: rs9: Fix suspend/resume
Disabling the cache in commit2ff4ba9e37("clk: rs9: Fix I2C accessors") without removing cache synchronization in resume path results in a kernel panic as map->cache_ops is unset, due to REGCACHE_NONE. Enable flat cache again to support resume again. num_reg_defaults_raw is necessary to read the cache defaults from hardware. Some registers are strapped in hardware and cannot be provided in software. Fixes:2ff4ba9e37("clk: rs9: Fix I2C accessors") Signed-off-by: Alexander Stein <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
This commit is contained in:
1 parent
f420f47e56
commit
632e04739c
1 file changed
+2
-1
@@ -143,8 +143,9 @@ static int rs9_regmap_i2c_read(void *context,
|
||||
static const struct regmap_config rs9_regmap_config = {
|
||||
.reg_bits = 8,
|
||||
.val_bits = 8,
|
||||
.cache_type = REGCACHE_NONE,
|
||||
.cache_type = REGCACHE_FLAT,
|
||||
.max_register = RS9_REG_BCP,
|
||||
.num_reg_defaults_raw = 0x8,
|
||||
.rd_table = &rs9_readable_table,
|
||||
.wr_table = &rs9_writeable_table,
|
||||
.reg_write = rs9_regmap_i2c_write,
|
||||
|
||||
Reference in new issue
Block a user