Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

b44: Utilize BRCM_PSEUDO_PHY_ADDR

What B44 has been locally using as B44_PHY_ADDR_NO_LOCAL_PHY is in fact
the Broadcom Ethernet switches pseudo-PHY address (30). Update the
header to use the newly introduced constant and update comments so they
are within 80 columns and consistent.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Florian Fainelli and committed by
David S. Miller
2729b427 8bc84b79

+6 -2
+6 -2
drivers/net/ethernet/broadcom/b44.h
··· 1 1 #ifndef _B44_H 2 2 #define _B44_H 3 3 4 + #include <linux/brcmphy.h> 5 + 4 6 /* Register layout. (These correspond to struct _bcmenettregs in bcm4400.) */ 5 7 #define B44_DEVCTRL 0x0000UL /* Device Control */ 6 8 #define DEVCTRL_MPM 0x00000040 /* Magic Packet PME Enable (B0 only) */ ··· 283 281 }; 284 282 285 283 #define B44_MCAST_TABLE_SIZE 32 286 - #define B44_PHY_ADDR_NO_LOCAL_PHY 30 /* no local phy regs */ 287 - #define B44_PHY_ADDR_NO_PHY 31 /* no phy present at all */ 284 + /* no local phy regs, e.g: Broadcom switches pseudo-PHY */ 285 + #define B44_PHY_ADDR_NO_LOCAL_PHY BRCM_PSEUDO_PHY_ADDR 286 + /* no phy present at all */ 287 + #define B44_PHY_ADDR_NO_PHY 31 288 288 #define B44_MDC_RATIO 5000000 289 289 290 290 #define B44_STAT_REG_DECLARE \