diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-08-26 12:19:35 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-11-03 13:38:46 +0000 |
commit | 3cbe050286f27de6b68f0e19ed0c45b73ab91725 (patch) | |
tree | 2a7d94f2917f33d3670cefbe8699e98ff33375ff /include/linux/phy.h | |
parent | 2509663fca2441ae7222cbe3b8627c6707473937 (diff) |
net: phy: provide phy driver start/stop hooks
Provide phy driver start/stop hooks so that the PHY driver knows when
the network driver is starting or stopping. This will be used for the
Marvell 10G driver so that we can sanely refuse to start if the PHYs
firmware is not present, and also so that we can sanely support SFPs
behind the PHY.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r-- | include/linux/phy.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 486dd3366867..833815d5607e 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -628,6 +628,9 @@ struct phy_driver { int (*suspend)(struct phy_device *phydev); int (*resume)(struct phy_device *phydev); + int (*start)(struct phy_device *phydev); + void (*stop)(struct phy_device *phydev); + /* * Configures the advertisement and resets * autonegotiation if phydev->autoneg is on, |