Skip to content

Commit

Permalink
net: gemini: Allow multiple ports to instantiate
Browse files Browse the repository at this point in the history
The code was not tested with two ports actually in use at
the same time. (I blame this on lack of actual hardware using
that feature.) Now after locating a system using both ports,
add necessary fix to make both ports come up.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Linus Walleij authored and David S. Miller committed Jul 13, 2018
1 parent 9ab5c92 commit 60cc776
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/net/ethernet/cortina/gemini.c
Original file line number Diff line number Diff line change
Expand Up @@ -1789,7 +1789,10 @@ static int gmac_open(struct net_device *netdev)
phy_start(netdev->phydev);

err = geth_resize_freeq(port);
if (err) {
/* It's fine if it's just busy, the other port has set up
* the freeq in that case.
*/
if (err && (err != -EBUSY)) {
netdev_err(netdev, "could not resize freeq\n");
goto err_stop_phy;
}
Expand Down

0 comments on commit 60cc776

Please sign in to comment.