Skip to content
Snippets Groups Projects
Commit 1785d8c3 authored by Alex Marginean's avatar Alex Marginean Committed by Joe Hershberger
Browse files

drivers: net: bcm-sf2: pass -1 to phy_connect()


Passing 0 to PHY connect used to trigger a MDIO scan due to a bug fixed in
the meantime.  It's unclear if bcm-sf2 wants to connect to PHY @ addr 0 or
is scanning the bus, passing -1 here should keep it functional either way.

Signed-off-by: default avatarAlex Marginean <alexandru.marginean@nxp.com>
Cc: Jiandong Zheng <jdzheng@broadcom.com>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent a9447c02
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,7 @@ static int bcm_sf2_eth_init(struct eth_device *dev) ...@@ -50,7 +50,7 @@ static int bcm_sf2_eth_init(struct eth_device *dev)
eth->port_num = 0; eth->port_num = 0;
debug("Connecting PHY 0...\n"); debug("Connecting PHY 0...\n");
phydev = phy_connect(miiphy_get_dev_by_name(dev->name), phydev = phy_connect(miiphy_get_dev_by_name(dev->name),
0, dev, eth->phy_interface); -1, dev, eth->phy_interface);
if (phydev != NULL) { if (phydev != NULL) {
eth->port[0] = phydev; eth->port[0] = phydev;
eth->port_num += 1; eth->port_num += 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment