diff options
author | Nicolas Ferre <nicolas.ferre@microchip.com> | 2019-05-03 13:36:58 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-03 17:26:15 +0300 |
commit | 8b952747844526cef50fa2e0ae903f586e3cb2e4 (patch) | |
tree | dcb3e4bfbc775efba2c09c210b40923fd370077f /include/linux/platform_data/macb.h | |
parent | d5aeb17621d2214c09c2d2679da4ce9cfb37f506 (diff) | |
download | linux-8b952747844526cef50fa2e0ae903f586e3cb2e4.tar.xz |
net: macb: shrink macb_platform_data structure
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: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/platform_data/macb.h')
-rw-r--r-- | include/linux/platform_data/macb.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/platform_data/macb.h b/include/linux/platform_data/macb.h index 7815d50c26ff..2bc51b822956 100644 --- a/include/linux/platform_data/macb.h +++ b/include/linux/platform_data/macb.h @@ -12,19 +12,10 @@ /** * struct macb_platform_data - platform data for MACB Ethernet - * @phy_mask: phy mask passed when register the MDIO bus - * within the driver - * @phy_irq_pin: PHY IRQ - * @is_rmii: using RMII interface? - * @rev_eth_addr: reverse Ethernet address byte order * @pclk: platform clock * @hclk: AHB clock */ struct macb_platform_data { - u32 phy_mask; - int phy_irq_pin; - u8 is_rmii; - u8 rev_eth_addr; struct clk *pclk; struct clk *hclk; }; |