From 29e5259e30012bfb0f48345ac7d89999f17e1f26 Mon Sep 17 00:00:00 2001 From: bui duc phuc Date: Fri, 24 Jul 2026 13:56:58 +0700 Subject: [PATCH] clk: rs9: restore cache_only on regcache_sync() failure in resume If regcache_sync() fails in rs9_resume(), the function only logs the error, leaving regmap with cache_only disabled even though the register cache has not been synchronized with the hardware. Re-enable cache_only on failure to restore the state established by rs9_suspend(). Signed-off-by: bui duc phuc Signed-off-by: Brian Masney --- drivers/clk/clk-renesas-pcie.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-renesas-pcie.c b/drivers/clk/clk-renesas-pcie.c index e2b441f99cca..864bf89cecd0 100644 --- a/drivers/clk/clk-renesas-pcie.c +++ b/drivers/clk/clk-renesas-pcie.c @@ -367,8 +367,10 @@ static int rs9_resume(struct device *dev) regcache_cache_only(rs9->regmap, false); ret = regcache_sync(rs9->regmap); - if (ret) + if (ret) { + regcache_cache_only(rs9->regmap, true); dev_err(dev, "Failed to restore register map: %d\n", ret); + } return ret; }