Commit 966d6dbb authored by Hisashi Nakamura's avatar Hisashi Nakamura Committed by David S. Miller

net: sh_eth: Add RMII mode setting in probe

When using RMMI mode, it is necessary to change in probe.
Signed-off-by: default avatarHisashi Nakamura <hisashi.nakamura.ak@renesas.com>
Signed-off-by: default avatarYoshihiro Kaneko <ykaneko0929@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fbe168ba
/* SuperH Ethernet device driver
*
* Copyright (C) 2014 Renesas Electronics Corporation
* Copyright (C) 2006-2012 Nobuhiro Iwamatsu
* Copyright (C) 2008-2014 Renesas Solutions Corp.
* Copyright (C) 2013-2014 Cogent Embedded, Inc.
......@@ -2883,6 +2884,9 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
}
}
if (mdp->cd->rmiimode)
sh_eth_write(ndev, 0x1, RMIIMODE);
/* MDIO bus init */
ret = sh_mdio_init(mdp, pd);
if (ret) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment