[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9b848f1c-9acd-243e-2c5b-d489d2427464@huawei.com>
Date: Fri, 20 Aug 2021 09:52:33 +0800
From: Yang Yingliang <yangyingliang@...wei.com>
To: Andy Shevchenko <andy.shevchenko@...il.com>
CC: <linux-kernel@...r.kernel.org>, <linux-iio@...r.kernel.org>,
<prabhakar.mahadev-lad.rj@...renesas.com>, <jic23@...nel.org>
Subject: Re: [PATCH -next] iio: adc: add missing clk_disable_unprepare() in
rzg2l_adc_pm_runtime_resume()
Hi,
On 2021/8/20 1:20, Andy Shevchenko wrote:
> On Thu, Aug 19, 2021 at 4:19 PM Yang Yingliang <yangyingliang@...wei.com> wrote:
>> Add clk_disable_unprepare() on error path in rzg2l_adc_pm_runtime_resume().
> ...
>
>> ret = clk_prepare_enable(adc->adclk);
>> - if (ret)
>> + if (ret) {
>> + clk_disable_unprepare(adc->pclk);
>> return ret;
>> + }
> Huh?!
The pclk need be disabled, when enable adclk failed.
^ ^^
>
Powered by blists - more mailing lists