--- zzzz-none-000/linux-3.10.107/include/linux/phy.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/include/linux/phy.h 2021-11-10 11:53:56.000000000 +0000 @@ -64,6 +64,7 @@ PHY_INTERFACE_MODE_RGMII_TXID, PHY_INTERFACE_MODE_RTBI, PHY_INTERFACE_MODE_SMII, + PHY_INTERFACE_MODE_QSGMII, } phy_interface_t; @@ -418,6 +419,12 @@ int (*config_intr)(struct phy_device *phydev); /* + * Called before an ethernet device is detached + * from the PHY. + */ + void (*detach)(struct phy_device *phydev); + + /* * Checks if the PHY generated an interrupt. * For multi-PHY devices with shared PHY interrupt pin */ @@ -575,4 +582,22 @@ void mdio_bus_exit(void); extern struct bus_type mdio_bus_type; + +struct mdio_board_info { + const char *bus_id; + int phy_addr; + + const void *platform_data; +}; + +#ifdef CONFIG_MDIO_BOARDINFO +int mdiobus_register_board_info(const struct mdio_board_info *info, unsigned n); +#else +static inline int +mdiobus_register_board_info(const struct mdio_board_info *info, unsigned n) +{ + return 0; +} +#endif + #endif /* __PHY_H */