Patch "clk: rs9: Fix suspend/resume" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    clk: rs9: Fix suspend/resume

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     clk-rs9-fix-suspend-resume.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit ed8c994ccdcc7b380e34ee12a74c4eebdb6fde46
Author: Alexander Stein <alexander.stein@xxxxxxxxxxxxxxx>
Date:   Fri Mar 10 08:49:40 2023 +0100

    clk: rs9: Fix suspend/resume
    
    [ Upstream commit 632e04739c8f45c2d9ca4d4c5bd18d80c2ac9296 ]
    
    Disabling the cache in commit 2ff4ba9e3702 ("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: 2ff4ba9e3702 ("clk: rs9: Fix I2C accessors")
    Signed-off-by: Alexander Stein <alexander.stein@xxxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230310074940.3475703-1-alexander.stein@xxxxxxxxxxxxxxx
    Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/clk/clk-renesas-pcie.c b/drivers/clk/clk-renesas-pcie.c
index e6247141d0c05..3e98a16eba6bb 100644
--- a/drivers/clk/clk-renesas-pcie.c
+++ b/drivers/clk/clk-renesas-pcie.c
@@ -144,8 +144,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,



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux