]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:29:11 +0000 (10:29 +0100)
commit60008124381b0ee6127dc55f41edaac35bb28df2
tree4cc28af438037ddbf7f7f305b2ae4a129f923c65
parenta4667fbd4cd906de02a26f707dd2c72e14100345
net: thunderx: Cleanup PHY probing code.

BugLink: http://bugs.launchpad.net/bugs/1562968
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>
(cherry picked from commit 5fc7cf179449502ad4ad67845ded2df94b680de2)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c