[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VfcmctOquXGRRi-cfvaUVtSeQK0xeTh0HYtPcmzhv-8gQ@mail.gmail.com>
Date: Wed, 8 Jul 2020 22:38:54 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Calvin Johnson <calvin.johnson@....nxp.com>
Cc: Jeremy Linton <jeremy.linton@....com>,
Russell King - ARM Linux admin <linux@...linux.org.uk>,
Jon <jon@...id-run.com>,
Cristi Sovaiala <cristian.sovaiala@....com>,
Ioana Ciornei <ioana.ciornei@....com>,
Andrew Lunn <andrew@...n.ch>,
Florian Fainelli <f.fainelli@...il.com>,
Madalin Bucur <madalin.bucur@....nxp.com>, linux.cj@...il.com,
ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
netdev <netdev@...r.kernel.org>
Subject: Re: [net-next PATCH v3 2/5] net/fsl: store mdiobus fwnode
On Wed, Jul 8, 2020 at 8:35 PM Calvin Johnson
<calvin.johnson@....nxp.com> wrote:
>
> Store fwnode for mdiobus in the bus structure so that it can
> later be retrieved and used whenever mdiobus fwnode information
> is required.
...
> + if (pdev->dev.fwnode)
But do you need this check?
> + bus->dev.fwnode = pdev->dev.fwnode;
Shouldn't be rather something like dev_fwnode().
And maybe set_primary_fwnode()? I'm not sure about the latter, though.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists