[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47f84a32-18e1-5612-b95c-607e2f19f9d8@linaro.org>
Date: Wed, 18 May 2022 09:10:37 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Jiabing Wan <wanjiabing@...o.com>, Vinod Koul <vkoul@...nel.org>,
Orson Zhai <orsonzhai@...il.com>,
Baolin Wang <baolin.wang7@...il.com>,
Chunyan Zhang <zhang.lyra@...il.com>,
Linus Walleij <linus.walleij@...aro.org>,
dmaengine@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 2/4] dmaengine: sprd-dma: Remove unneeded ERROR check
before clk_disable_unprepare
On 18/05/2022 04:44, Jiabing Wan wrote:
> Hi,
>
> On 2022/5/17 23:13, Krzysztof Kozlowski wrote:
>> On 16/05/2022 10:41, Wan Jiabing wrote:
>>> clk_disable_unprepare() already checks ERROR by using IS_ERR_OR_NULL.
>> Hmm, maybe I am looking at different sources, but which commit
>> introduced IS_ERR_OR_NULL() check? Where is it in the sources?
>>
> In commit 4dff95dc9477a, IS_ERR_OR_NULL check is added in clk_disable()
> and clk_unprepare().
> And clk_disable_unprepare() just calls clk_disable() and clk_unprepare():
Thank you, indeed, I was mislead a bit by clk_prepare() which is not
symmetric.
Best regards,
Krzysztof
Powered by blists - more mailing lists