net: mvmdio: defer probe of orion-mdio if a clock is not ready
authorJosua Mayer <josua@solid-run.com>
Tue, 9 Jul 2019 13:01:01 +0000 (15:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2019 05:28:33 +0000 (07:28 +0200)
commitfc92046b6822d1497f17cad2c67186f95d03a7d7
treeee6208339c4de6c448dbf7754088e14e893f4219
parentc272ed9e78846bfd75ccf340b677354a6b1ec723
net: mvmdio: defer probe of orion-mdio if a clock is not ready

[ Upstream commit 433a06d7d74e677c40b1148c70c48677ff62fb6b ]

Defer probing of the orion-mdio interface when getting a clock returns
EPROBE_DEFER. This avoids locking up the Armada 8k SoC when mdio is used
before all clocks have been enabled.

Signed-off-by: Josua Mayer <josua@solid-run.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/mvmdio.c