RE: [PATCH net-next] net: fec: Issue error for missing but expected PHY

2017-07-30 Thread Andy Duan
From: Andrew Lunn Sent: Monday, July 31, 2017 4:11 AM >If the PHY is missing but expected, e.g. because of a typ0 in the dt file, it >is not >possible to open the interface. ip link returns: > >RTNETLINK answers: No such device > >It is not very obvious what the problem is. Add a

[PATCH net-next] net: fec: Issue error for missing but expected PHY

2017-07-30 Thread Andrew Lunn
If the PHY is missing but expected, e.g. because of a typ0 in the dt file, it is not possible to open the interface. ip link returns: RTNETLINK answers: No such device It is not very obvious what the problem is. Add a netdev_err() in this case to make it easier to debug the issue. [