[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6a04c7b7-dd70-10c2-fc69-08b6b6c33d03@collabora.com>
Date: Thu, 1 Oct 2020 09:59:38 +0200
From: Enric Balletbo i Serra <enric.balletbo@...labora.com>
To: Linus Walleij <linus.walleij@...aro.org>,
Sean Wang <sean.wang@...nel.org>
Cc: lkml <linux-kernel@...r.kernel.org>,
Collabora Kernel ML <kernel@...labora.com>,
Matthias Brugger <matthias.bgg@...il.com>,
Nicolas Boichat <drinkcat@...omium.org>, hsinyi@...omium.org,
linux-arm Mailing List <linux-arm-kernel@...ts.infradead.org>,
"open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
"moderated list:ARM/Mediatek SoC support"
<linux-mediatek@...ts.infradead.org>
Subject: Re: [PATCH v2] pinctrl: mediatek: Free eint data on failure
Hi,
On 1/10/20 9:58, Linus Walleij wrote:
> On Wed, Sep 30, 2020 at 6:33 PM Sean Wang <sean.wang@...nel.org> wrote:
>> On Wed, Sep 30, 2020 at 1:47 AM Linus Walleij <linus.walleij@...aro.org> wrote:
>>> On Sun, Sep 27, 2020 at 7:57 PM Sean Wang <sean.wang@...nel.org> wrote:
>>>
>>>> v2 seems the same with v1 or I was missing something.
>>>>
>>>> I just thought we call devm_ioremap_release to explicitly to free
>>>> resource when a certain failure occurs after
>>>> devm_ioremap_resource?
>>>
>>> What is the semantics around mtk_build_eint()?
>>>
>>
>> mtk_build_eint is to add external interrupt function to the
>> corresponding bound pins.
>> mtk pinctrl driver still can work (than means probe() successfully) to
>> keep pinctrl functional even with there is an error in mtk_build_eint.
>> So the patch is used to explicitly free those data on failure in
>> mtk_build_eint to let unused data is being free:ed immediately.
>
> OK then we need a v3 of this that will call *release
> explicitly, indeed.
>
Yes, don't really know what happened with v2. I'll send a v3 ASAP.
> Thanks Sean!
> Linus Walleij
>
Powered by blists - more mailing lists