ar71xx: ag71xx: Prevent kernel oops for board def
authorDaniel F. Dickinson <cshored@thecshore.com>
Thu, 26 Jul 2018 06:57:37 +0000 (02:57 -0400)
committerJohn Crispin <john@phrozen.org>
Mon, 30 Jul 2018 08:43:36 +0000 (10:43 +0200)
commit7a3e133751870a3431e2430386a77a002eb24117
tree7b445be66114f8d8ab291d6130f1d952ade4ea26
parent0b9f4e880807e3cfd22d12b929202e1edcdc577c
ar71xx: ag71xx: Prevent kernel oops for board def

The driver is written in such a way that with a board defintion that
connects a fixed phy, mdio, and switch in a certain way, a kernel oops could
result because of lack of previously probed mdio bus.

This commit allows for easier debugging in this case by casting the
correct blame with serial console messages.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.c