• Jeremy Linton's avatar
    net: bcmgenet: Fetch MAC address from the adapter · 26bd9cc6
    Jeremy Linton authored
    ARM/ACPI machines should utilize self describing hardware
    when possible. The MAC address on the BCMGENET can be
    read from the adapter if a full featured firmware has already
    programmed it. Lets try using the address already programmed,
    if it appears to be valid.
    
    It should be noted that while we move the macaddr logic below
    the clock and power logic in the driver, none of that code will
    ever be active in an ACPI environment as the device will be
    attached to the acpi power domain, and brought to full power
    with all clocks enabled immediately before the device probe
    routine is called.
    
    One side effect of the above tweak is that while its now
    possible to read the MAC address via _DSD properties, it should
    be avoided.
    Signed-off-by: default avatarJeremy Linton <jeremy.linton@arm.com>
    Acked-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    26bd9cc6
bcmgenet.c 100 KB