All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] cpufreq: mediatek-hw: Fix double devm_remap in hotplug case
@ 2021-10-29 11:42 ` Hector Yuan
  0 siblings, 0 replies; 12+ messages in thread
From: Hector Yuan @ 2021-10-29 11:42 UTC (permalink / raw)
  To: linux-mediatek, linux-arm-kernel, linux-pm, Rafael J. Wysocki,
	Viresh Kumar
  Cc: linux-kernel, wsd_upstream, hector.yuan

When hotpluging policy cpu, cpu policy init will be called multiple times.
Unplug CPU7 -> CPU6 -> CPU5 -> CPU4, then plug CPU4 again.
In this case, devm_remap will double remap and resource allocate fail.
So replace devm_remap to ioremap and release related resources in cpu exit.


Hector.Yuan (1):
  cpufreq: mediatek-hw: Fix double devm_remap in hotplug case

 drivers/cpufreq/mediatek-cpufreq-hw.c |   33 ++++++++++++++++++++++++++++++---
 1 file changed, 30 insertions(+), 3 deletions(-)

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

end of thread, other threads:[~2021-12-27  4:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-29 11:42 [PATCH v1] cpufreq: mediatek-hw: Fix double devm_remap in hotplug case Hector Yuan
2021-10-29 11:42 ` Hector Yuan
2021-10-29 11:42 ` Hector Yuan
2021-10-29 11:42 ` [PATCH v1 1/1] " Hector Yuan
2021-10-29 11:42   ` Hector Yuan
2021-10-29 11:42   ` Hector Yuan
2021-11-02  3:48   ` Viresh Kumar
2021-11-02  3:48     ` Viresh Kumar
2021-11-02  3:48     ` Viresh Kumar
2021-12-27  4:15   ` Viresh Kumar
2021-12-27  4:15     ` Viresh Kumar
2021-12-27  4:15     ` Viresh Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.