Skip to content
  • Nicolas Ferre's avatar
    net: macb: shrink macb_platform_data structure · 8b952747
    Nicolas Ferre authored
    
    
    This structure was used intensively for machine specific values
    when DT was not used. Since the removal of AVR32 from the kernel,
    this structure is only used for passing clocks from PCI macb wrapper, all
    other fields being 0.
    All other known platforms use DT.
    
    Remove the leftovers but make sure that PCI macb still works as
    expected by using default values:
    - phydev->irq is set to PHY_POLL by mdiobus_alloc()
    - mii_bus->phy_mask is cleared while allocating it
    - bp->phy_interface is set to PHY_INTERFACE_MODE_MII if mode not found
    in DT.
    
    This simplifies driver probe path and particularly phy handling.
    
    Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    8b952747