Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ab6329c authored by Hauke Mehrtens's avatar Hauke Mehrtens Committed by David S. Miller
Browse files

b44: rename B44_PHY_ADDR_NO_PHY to B44_PHY_ADDR_NO_LOCAL_PHY



The PHY address 30 means there is no local PHY, but there could be an
external PHY like a switch connected via MII. This is the case on most
embedded home routers where this driver is used.

Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d6194195
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2237,7 +2237,7 @@ static int b44_init_one(struct ssb_device *sdev,

	/* do a phy reset to test if there is an active phy */
	if (b44_phy_reset(bp) < 0)
		bp->phy_addr = B44_PHY_ADDR_NO_PHY;
		bp->phy_addr = B44_PHY_ADDR_NO_LOCAL_PHY;

	netdev_info(dev, "%s %pM\n", DRV_DESCRIPTION, dev->dev_addr);

+3 −3
Original line number Diff line number Diff line
@@ -281,7 +281,7 @@ struct ring_info {
};

#define B44_MCAST_TABLE_SIZE		32
#define B44_PHY_ADDR_NO_PHY	30
#define B44_PHY_ADDR_NO_LOCAL_PHY	30 /* no local phy regs */
#define B44_MDC_RATIO			5000000

#define	B44_STAT_REG_DECLARE		\