From 2b88563ee5aafd9571d965b7f2093a0f58d98a31 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 26 Nov 2020 12:02:21 +0100 Subject: phy: Add PHY ops for rtl838x EEE * rename the target to realtek * add refactored DSA driver * add latest gpio driver * lots of arch cleanups * new irq driver * additional boards Submitted-by: Bert Vermeulen Submitted-by: Birger Koblitz Submitted-by: Sander Vanheule Submitted-by: Bjørn Mork Submitted-by: John Crispin --- include/linux/phy.h | 4 ++++ 1 file changed, 4 insertions(+) --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -1180,6 +1180,10 @@ struct phy_driver { */ int (*led_polarity_set)(struct phy_device *dev, int index, unsigned long modes); + int (*get_port)(struct phy_device *dev); + int (*set_port)(struct phy_device *dev, int port); + int (*get_eee)(struct phy_device *dev, struct ethtool_eee *e); + int (*set_eee)(struct phy_device *dev, struct ethtool_eee *e); }; #define to_phy_driver(d) container_of(to_mdio_common_driver(d), \ struct phy_driver, mdiodrv)