* [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
* Re: [PATCH 6.1.y] regmap: fix wrong backport
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
1 sibling, 0 replies; 4+ messages in thread
From: Sasha Levin @ 2025-01-16 0:25 UTC (permalink / raw)
To: stable; +Cc: Tzung-Bi Shih, Sasha Levin
[ Sasha's backport helper bot ]
Hi,
No upstream commit was identified. Using temporary commit for testing.
Results of testing on various branches:
| Branch | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-6.1.y | Success | Success |
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 6.1.y] regmap: fix wrong backport
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
1 sibling, 1 reply; 4+ messages in thread
From: Greg KH @ 2025-01-21 13:23 UTC (permalink / raw)
To: Tzung-Bi Shih; +Cc: stable, broonie, rafael, demonsingur
On Wed, Jan 15, 2025 at 03:32:44AM +0000, Tzung-Bi Shih wrote:
> 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(-)
How about submitting a revert of the mistake and then the original
commit properly backported as a patch series of 2 commits? That way it
makes it more obvious what is happening here.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 6.1.y] regmap: fix wrong backport
2025-01-21 13:23 ` Greg KH
@ 2025-01-21 13:27 ` Greg KH
0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2025-01-21 13:27 UTC (permalink / raw)
To: Tzung-Bi Shih; +Cc: stable, broonie, rafael, demonsingur
On Tue, Jan 21, 2025 at 02:23:31PM +0100, Greg KH wrote:
> On Wed, Jan 15, 2025 at 03:32:44AM +0000, Tzung-Bi Shih wrote:
> > 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(-)
>
> How about submitting a revert of the mistake and then the original
> commit properly backported as a patch series of 2 commits? That way it
> makes it more obvious what is happening here.
I've done the revert now, a fixed up backport would be appreciated now.
thanks
greg k-h
^ permalink raw reply [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;
as well as URLs for NNTP newsgroup(s).