net: arc_emac: support the phy reset for emac driver
authorCaesar Wang <wxt@rock-chips.com>
Mon, 14 Mar 2016 08:01:54 +0000 (16:01 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Mar 2016 23:28:01 +0000 (19:28 -0400)
commit1bddd96cba03da0a14b3e5144e98c9a6ff17e983
treebdd4e8de5e6d5afc74f49ae86c404e2bd73b79e7
parent8700eee6271c932b2747a6b157655f546c27e7ad
net: arc_emac: support the phy reset for emac driver

This patch adds to support the emac phy reset.

Different boards may require different phy reset duration. Add property
phy-reset-duration for emac driver, so that the boards that need
a longer reset duration can specify it in their device tree.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Cc: Alexander Kochetkov <al.kochet@gmail.com>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/arc/emac.h
drivers/net/ethernet/arc/emac_mdio.c