]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: Cleanup PHY probing code.
authorDavid Daney <david.daney@cavium.com>
Fri, 11 Mar 2016 17:53:09 +0000 (09:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2016 19:27:22 +0000 (15:27 -0400)
commitb8af1e6a5acd8bff5e2a0eb4a6ba79b61049af9f
tree03529ca2ac4a8770ccd3b16c82e7b60bf681bb25
parent7b0da4f466d71bca2bec229dc7eeab0d34bf5246
net: thunderx: Cleanup PHY probing code.

Remove the call to force the octeon-mdio driver to be loaded.  Allow
the standard driver loading mechanisms to load the PHY drivers, and
use -EPROBE_DEFER to cause the BGX driver to be probed only after the
PHY drivers are available.

Reorder the setting of MAC addresses and PHY probing to allow BGX
LMACs with no attached PHY to still be assigned a MAC address.

Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c