net: sh_eth: Init the hardware before PHY access
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 4 Apr 2020 13:01:22 +0000 (15:01 +0200)
committermarex <marex@desktop.lan>
Sat, 4 Apr 2020 13:06:37 +0000 (15:06 +0200)
commitb13da11255a01475d41bdc5d367d55ed3656bae8
tree2e207991e598806231148a2fbea867feb39ed9f6
parente0718b3ab754860bd47677e6b4fc5b70da42c4ab
net: sh_eth: Init the hardware before PHY access

To access the PHY, the MAC registers must be initialized. Call the init
function in probe() to make it so, otherwise the PHY ID readout returns
all zeroes.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
drivers/net/sh_eth.c