Changeset 24611


Ignore:
Timestamp:
2010-12-15T20:55:47+01:00 (7 years ago)
Author:
juhosg
Message:

ar71xx: UBNT M-Series MAC address fix

UBNT M-Series devices have 2 MAC addresses in board data.
Fix is to use both entries from board data instead of one entry.

Signed-off-by: Kestutis Barkauskas<keba@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c

    r23977 r24611  
    226226static void __init ubnt_m_setup(void) 
    227227{ 
    228         u8 *mac = (u8 *) KSEG1ADDR(0x1fff0000); 
     228        u8 *mac1 = (u8 *) KSEG1ADDR(0x1fff0000); 
     229        u8 *mac2 = (u8 *) KSEG1ADDR(0x1fff0000 + ETH_ALEN); 
    229230        u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000); 
    230231 
     
    233234        ar71xx_add_device_mdio(~0); 
    234235 
    235         ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 0); 
    236         ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, 1); 
     236        ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac1, 0); 
     237        ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac2, 0); 
    237238        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII; 
    238239        ar71xx_eth0_data.speed = SPEED_100; 
Note: See TracChangeset for help on using the changeset viewer.