This patch fixes a very minor bug that can show up when someone
tests the Ethernet interface on PEEP. The bug is related to PHY
handling. This patch fixes it.
Signed-off-by: Anirudha Sarangi <anirudh@xilinx.com>
netif_carrier_off(ndev);
spin_unlock(&lp->rx_lock);
spin_unlock_bh(&lp->tx_lock);
- if (lp->phy_dev)
- phy_disconnect(lp->phy_dev);
+ if (lp->phy_dev) {
+ if (lp->board_type == BOARD_TYPE_ZYNQ)
+ phy_disconnect(lp->phy_dev);
+ }
xemacps_descriptor_free(lp);
pm_runtime_put(&lp->pdev->dev);
lp->link = 0;
lp->speed = 0;
lp->duplex = -1;
- if (lp->phy_dev)
+ if (lp->phy_dev) {
+ if (lp->board_type == BOARD_TYPE_ZYNQ)
phy_start(lp->phy_dev);
+ }
napi_enable(&lp->napi);
tasklet_enable(&lp->tx_bdreclaim_tasklet);
netif_start_queue(lp->ndev);