aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qualcomm/emac/emac-phy.c
diff options
context:
space:
mode:
authorTimur Tabi <timur@codeaurora.org>2017-01-27 16:43:43 -0600
committerDavid S. Miller <davem@davemloft.net>2017-01-29 19:07:02 -0500
commit9da34f27c13bfc8d13b5599808d815382ef41128 (patch)
tree7417cdeb1e8294bc3511f3b6460a98d93a139ce3 /drivers/net/ethernet/qualcomm/emac/emac-phy.c
parentopenvswitch: Simplify do_execute_actions(). (diff)
downloadlinux-dev-9da34f27c13bfc8d13b5599808d815382ef41128.tar.xz
linux-dev-9da34f27c13bfc8d13b5599808d815382ef41128.zip
net: qcom/emac: display the phy driver info after we connect
The PHY driver is attached only when the driver calls phy_connect_direct(). Calling phy_attached_print() to display information about the PHY driver prior to that point is meaningless. The interface can be brought down, a new PHY driver can be loaded, and the interface then brought back up. This is the correct time to display information about the attached driver. Since phy_attached_print() also prints information about the interrupt, that needs to be set as well. Signed-off-by: Timur Tabi <timur@codeaurora.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/qualcomm/emac/emac-phy.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/qualcomm/emac/emac-phy.c b/drivers/net/ethernet/qualcomm/emac/emac-phy.c
index 1d7852f4ccaa..441c19366489 100644
--- a/drivers/net/ethernet/qualcomm/emac/emac-phy.c
+++ b/drivers/net/ethernet/qualcomm/emac/emac-phy.c
@@ -226,8 +226,5 @@ int emac_phy_config(struct platform_device *pdev, struct emac_adapter *adpt)
return -ENODEV;
}
- if (adpt->phydev->drv)
- phy_attached_print(adpt->phydev, NULL);
-
return 0;
}