Subject: Re: commit e34d65696d2e broke stmmac ethernet on socfpga

From: Dinh Nguyen <[email-masked]>
Date: Mon, 4 Jan 2016 09:19:02 -0600

On 01/01/2016 02:49 AM, Romain Perier wrote:
> Hi all,
> 
> Same here on rockchip.
> See "[PATCH] stmmac: Don't exit mdio registration when mdio subnode is
> not found in the DTS"
> 
> Regards,
> Romain
> 
> 2015-12-18 18:45 GMT+01:00 Dinh Nguyen <[email-masked]>:
>> Hi,
>>
>> It appears that commit e34d65696d2e 'stmmac: create of compatible mdio
>> bus for
>> stmmac driver' is causing this error on the SoCFPGA platform:
>>
>> [    1.767246] libphy: PHY stmmac-0:ffffffff not found
>> [    1.772106] eth0: Could not attach to PHY
>> [    1.776129] stmmac_open: Cannot attach to PHY (error: -19)
>> [    1.781590] IP-Config: Failed to open eth0
>> [    1.785681] IP-Config: No network devices available
>>
>> Doing a revert of this commit fixes the issue. Will try to debug further.
>>

There error is here:

[    0.663275] socfpga-dwmac ff702000.ethernet eth0: NO MDIO subnode

It appears that his commit requires an update to DTS files, which will
subsequently break legacy DTS.

Also, this commit is only in linux-next.

Dinh