Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 6.1.y] regmap: fix wrong backport
@ 2025-01-15  3:32 Tzung-Bi Shih
  2025-01-16  0:25 ` Sasha Levin
  2025-01-21 13:23 ` Greg KH
  0 siblings, 2 replies; 4+ messages in thread
From: Tzung-Bi Shih @ 2025-01-15  3:32 UTC (permalink / raw)
  To: gregkh, stable; +Cc: broonie, rafael, demonsingur, tzungbi

48dc44f3c1af ("regmap: detach regmap from dev on regmap_exit")
wrongly backported upstream commit 3061e170381a.

It should patch regmap_exit() instead of regmap_reinit_cache().

Fixes: 48dc44f3c1af ("regmap: detach regmap from dev on regmap_exit")
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
---
 drivers/base/regmap/regmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index 8748cea3bc38..f0e314abcafc 100644
--- a/drivers/base/regmap/regmap.c
+++ b/drivers/base/regmap/regmap.c
@@ -1513,7 +1513,6 @@ int regmap_reinit_cache(struct regmap *map, const struct regmap_config *config)
 {
 	int ret;
 
-	regmap_detach_dev(map->dev, map);
 	regcache_exit(map);
 	regmap_debugfs_exit(map);
 
@@ -1548,6 +1547,7 @@ void regmap_exit(struct regmap *map)
 {
 	struct regmap_async *async;
 
+	regmap_detach_dev(map->dev, map);
 	regcache_exit(map);
 	regmap_debugfs_exit(map);
 	regmap_range_exit(map);
-- 
2.48.0.rc2.279.g1de40edade-goog


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-01-21 13:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-15  3:32 [PATCH 6.1.y] regmap: fix wrong backport Tzung-Bi Shih
2025-01-16  0:25 ` Sasha Levin
2025-01-21 13:23 ` Greg KH
2025-01-21 13:27   ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox