[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210830115822.759f4bba@jic23-huawei>
Date: Mon, 30 Aug 2021 11:58:22 +0100
From: Jonathan Cameron <jic23@...nel.org>
To: Andy Shevchenko <andy.shevchenko@...il.com>
Cc: Yang Yingliang <yangyingliang@...wei.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-iio <linux-iio@...r.kernel.org>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>
Subject: Re: [PATCH -next] iio: adc: add missing clk_disable_unprepare() in
rzg2l_adc_pm_runtime_resume()
On Fri, 20 Aug 2021 12:17:46 +0300
Andy Shevchenko <andy.shevchenko@...il.com> wrote:
> On Fri, Aug 20, 2021 at 4:52 AM Yang Yingliang <yangyingliang@...wei.com> wrote:
> > 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.
> > ^ ^^
>
> Indeed. I'm wondering if those clocks behave like a bulk or any
> combination is possible on a working case?
They are handled independently in other parts of the driver, so bulk
setting is going to be a mess.
>
Powered by blists - more mailing lists