Skip to content

Commit

Permalink
b44: rename B44_PHY_ADDR_NO_PHY to B44_PHY_ADDR_NO_LOCAL_PHY
Browse files Browse the repository at this point in the history
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: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Hauke Mehrtens authored and David S. Miller committed Dec 21, 2013
1 parent d619419 commit 5ab6329
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/broadcom/b44.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
6 changes: 3 additions & 3 deletions drivers/net/ethernet/broadcom/b44.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ struct ring_info {
dma_addr_t mapping;
};

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

#define B44_STAT_REG_DECLARE \
_B44(tx_good_octets) \
Expand Down

0 comments on commit 5ab6329

Please sign in to comment.