0a771b64f0b0a53f708f9f71946428d5600f4427
[openwrt/staging/chunkeey.git] / target / linux / realtek / patches-5.10 / 703-include-linux-add-phy-ops-for-rtl838x.patch
1 --- a/include/linux/phy.h
2 +++ b/include/linux/phy.h
3 @@ -881,6 +881,10 @@ struct phy_driver {
4 int (*get_sqi)(struct phy_device *dev);
5 /** @get_sqi_max: Get the maximum signal quality indication */
6 int (*get_sqi_max)(struct phy_device *dev);
7 + int (*get_port)(struct phy_device *dev);
8 + int (*set_port)(struct phy_device *dev, int port);
9 + int (*get_eee)(struct phy_device *dev, struct ethtool_eee *e);
10 + int (*set_eee)(struct phy_device *dev, struct ethtool_eee *e);
11 };
12 #define to_phy_driver(d) container_of(to_mdio_common_driver(d), \
13 struct phy_driver, mdiodrv)