realtek: replace RTL93xx GPIO patches
[openwrt/staging/ldir.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 @@ -885,6 +885,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)