Thread (4 messages) 4 messages, 2 authors, 2021-12-27

Re: [PATCH v1 1/1] cpufreq: mediatek-hw: Fix double devm_remap in hotplug case

From: Viresh Kumar <viresh.kumar@linaro.org>
Date: 2021-12-27 04:15:36
Also in: linux-arm-kernel, linux-pm, lkml

On 29-10-21, 19:42, Hector Yuan wrote:
From: "Hector.Yuan" <redacted>

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 resources in cpu policy exit.

Signed-off-by: Hector.Yuan <redacted>
---
 drivers/cpufreq/mediatek-cpufreq-hw.c |   33 ++++++++++++++++++++++++++++++---
 1 file changed, 30 insertions(+), 3 deletions(-)
Applied. Thanks.

-- 
viresh

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help