[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20211227041531.5w5lhrk4a7jzz64x@vireshk-i7>
Date: Mon, 27 Dec 2021 09:45:31 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: Hector Yuan <hector.yuan@...iatek.com>
Cc: linux-mediatek@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, linux-pm@...r.kernel.org,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
linux-kernel@...r.kernel.org, wsd_upstream@...iatek.com
Subject: Re: [PATCH v1 1/1] cpufreq: mediatek-hw: Fix double devm_remap in
hotplug case
On 29-10-21, 19:42, Hector Yuan wrote:
> From: "Hector.Yuan" <hector.yuan@...iatek.com>
>
> 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 <hector.yuan@...iatek.com>
> ---
> drivers/cpufreq/mediatek-cpufreq-hw.c | 33 ++++++++++++++++++++++++++++++---
> 1 file changed, 30 insertions(+), 3 deletions(-)
Applied. Thanks.
--
viresh
Powered by blists - more mailing lists