[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75Vftq3OEEC5DfW8CgV4yQKZ3doD-r6khXxgn0oOmrLnLkA@mail.gmail.com>
Date: Fri, 24 Apr 2020 12:56:37 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Calvin Johnson <calvin.johnson@....nxp.com>
Cc: linux.cj@...il.com, Jeremy Linton <jeremy.linton@....com>,
Andrew Lunn <andrew@...n.ch>,
Florian Fainelli <f.fainelli@...il.com>,
Russell King - ARM Linux admin <linux@...linux.org.uk>,
Cristi Sovaiala <cristian.sovaiala@....com>,
Florin Laurentiu Chiculita <florinlaurentiu.chiculita@....com>,
Ioana Ciornei <ioana.ciornei@....com>,
Madalin Bucur <madalin.bucur@....nxp.com>,
Laurentiu Tudor <laurentiu.tudor@....com>,
ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
Diana Madalina Craciun <diana.craciun@....com>,
linux-arm Mailing List <linux-arm-kernel@...ts.infradead.org>,
Pankaj Bansal <pankaj.bansal@....com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
netdev <netdev@...r.kernel.org>, Varun Sethi <V.Sethi@....com>,
Marcin Wojtas <mw@...ihalf.com>,
Makarand Pawagi <makarand.pawagi@....com>,
"Rajesh V . Bikkina" <rajesh.bikkina@....com>,
"David S. Miller" <davem@...emloft.net>,
Heiner Kallweit <hkallweit1@...il.com>
Subject: Re: [net-next PATCH v1 2/2] phylink: introduce phylink_fwnode_phy_connect()
On Fri, Apr 24, 2020 at 6:17 AM Calvin Johnson
<calvin.johnson@....nxp.com> wrote:
>
> Define phylink_fwnode_phy_connect() to connect phy specified by
> a fwnode to a phylink instance. This function will handle both
> DT and ACPI nodes.
> #include <linux/spinlock.h>
> #include <linux/timer.h>
> #include <linux/workqueue.h>
> +#include <linux/acpi.h>
Looks like broken order.
> + if (is_of_node(fwnode)) {
> + } else if (is_acpi_node(fwnode)) {
> + }
I'm wondering if there is an API that allows you to drop all this
stuff. In property provider agnostic code we really don't want to see
this.
> + if (!phy_dev)
> + return -ENODEV;
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists