]> 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)
commitcd58f707c55bfc4e161546d5aba4eb4c37da99b2
tree03529ca2ac4a8770ccd3b16c82e7b60bf681bb25
parent9d733ef5e67cb93e879ddddaea1f5b1ed39b03b5
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