gianfar: Check if phydev present on ethtool -A
authorClaudiu Manoil <claudiu.manoil@freescale.com>
Wed, 23 Apr 2014 13:38:47 +0000 (16:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Apr 2014 17:36:16 +0000 (13:36 -0400)
commit98a46d46d1bc983125b6ff9a0e831050a7011713
tree6c4cff53b978cef5f48983d09736796ec1e7d140
parent00d0cd38fd570959241cfb3703d8a19e6ef07d86
gianfar: Check if phydev present on ethtool -A

This fixes a seg fault on 'ethtool -A' entry if the
interface is down.  Obviously we need to have the
phy device initialized / "connected" (see of_phy_connect())
to be able to advertise pause frame capabilities.

Fixes: 23402bddf9e56eecb27bbd1e5467b3b79b3dbe58
Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/gianfar_ethtool.c