net: stmmac: enable clause 45 mdio support
authorKweh Hock Leong <hock.leong.kweh@intel.com>
Fri, 5 Jul 2019 17:33:27 +0000 (01:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jul 2019 23:08:55 +0000 (16:08 -0700)
commitd4117d63a30876a3654f587c3a419db63d8b529d
tree2d5b14fe951fa991e70b081616b661eb09837332
parent44e3725943b706d3625ad91b1a1069a18fd0775c
net: stmmac: enable clause 45 mdio support

DWMAC4 is capable to support clause 45 mdio communication.
This patch enable the feature on stmmac_mdio_write() and
stmmac_mdio_read() by following phy_write_mmd() and
phy_read_mmd() mdiobus read write implementation format.

Reviewed-by: Li, Yifan <yifan2.li@intel.com>
Signed-off-by: Kweh Hock Leong <hock.leong.kweh@intel.com>
Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: Voon Weifeng <weifeng.voon@intel.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
include/linux/phy.h