• Jeremy Linton's avatar
    net: bcmgenet: enable automatic phy discovery · 6ef31c8b
    Jeremy Linton authored
    The unimac mdio driver falls back to scanning the
    entire bus if its given an appropriate mask. In ACPI
    mode we expect that the system is well behaved and
    conforms to recent versions of the specification.
    
    We then utilize phy_find_first(), and
    phy_connect_direct() to find and attach to the
    discovered phy during net_device open. While its
    apparently possible to build a genet based device
    with multiple phys on a single mdio bus, this works
    for current machines. Further, this driver makes
    a number of assumptions about the platform device,
    mac, mdio and phy all being 1:1. Lastly, It also
    avoids having to create references across the ACPI
    namespace hierarchy.
    Signed-off-by: default avatarJeremy Linton <jeremy.linton@arm.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6ef31c8b
bcmmii.c 16.2 KB