[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <56E6842E.1040103@st.com>
Date: Mon, 14 Mar 2016 10:28:14 +0100
From: Giuseppe CAVALLARO <peppe.cavallaro@...com>
To: Gabriel Fernandez <gabriel.fernandez@...aro.org>
CC: <netdev@...r.kernel.org>,
Andreas Färber <afaerber@...e.de>,
<fschaefer.oss@...glemail.com>, Dinh Nguyen <dinh.linux@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Phil Reid <preid@...ctromag.com.au>
Subject: Re: [PATCHv3 (net.git) 2/2] stmmac: fix MDIO settings
On 3/14/2016 10:14 AM, Gabriel Fernandez wrote:
> Hi Peppe,
>
> Just one remark below
>
>> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
>> index 6a52fa1..d2322e9 100644
>> --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
>> +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
>
> [snip]
>
>> +static bool stmmac_dt_phy(struct plat_stmmacenet_data *plat,
>> + struct device_node *np, struct device *dev)
>> +{
>> + bool ret = true;
>> +
>> + /* If phy-handle property is passed from DT, use it as the PHY */
>> + plat->phy_node = of_parse_phandle(np, "phy-handle", 0);
>> + if (plat->phy_node)
>> + dev_dbg(dev, "Found phy-handle subnode\n");
>> +
>> + /* If phy-handle is not specified, check if we have a fixed-phy */
>> + if (!plat->phy_node && of_phy_is_fixed_link(np)) {
>> + if ((of_phy_register_fixed_link(np) < 0))
>> + return -ENODEV;
>> +
> stmmac_dt_phy() function should return a Boolean
Thx Gabriel, I will fix return value in V4.
peppe
>
>
> Best Regards.
>
> Gabriel
>
>
Powered by blists - more mailing lists