[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <e6dc48bb-438e-42f1-a756-6995cff5516d@microchip.com>
Date: Thu, 24 Aug 2023 10:33:36 +0000
From: <Balamanikandan.Gunasundar@...rochip.com>
To: <linus.walleij@...aro.org>
CC: <dmitry.torokhov@...il.com>, <ulf.hansson@...aro.org>,
<linux-kernel@...r.kernel.org>, <linux-mmc@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<Ludovic.Desroches@...rochip.com>, <Nicolas.Ferre@...rochip.com>,
<alexandre.belloni@...tlin.com>, <Hari.PrasathGE@...rochip.com>,
<Balamanikandan.Gunasundar@...rochip.com>
Subject: Re: [PATCH v5 3/3] mmc: atmel-mci: Move card detect gpio polarity
quirk to gpiolib
On 24/08/23 2:03 pm, Linus Walleij wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> On Thu, Aug 24, 2023 at 8:39 AM <Balamanikandan.Gunasundar@...rochip.com> wrote:
>
>>>> +#if IS_ENABLED(CONFIG_MMC_ATMELMCI)
>>>> + if (of_device_is_compatible(np->parent, "atmel,hsmci") &&
>>
>> The only difference above is "np->parent" while the existing code uses
>> "np". This is because the compatible string is defined in the parent
>> node here while the others have it in the same node.
>
> Aha. What about this right before the for-loop
> then:
>
> /* The Atmel MSMCI has the property in a child node of the device */
> if (IS_ENABLED(CONFIG_MMC_ATMELMCI) &&
> of_device_is_compatible(np->parent, "atmel,hsmci"))
> np = parent->np;
>
This looks good! I will send a v6.
Thanks,
Balamanikandan
> Yours,
> Linus Walleij
Powered by blists - more mailing lists