summaryrefslogtreecommitdiff
path: root/include/phy.h
diff options
context:
space:
mode:
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>2016-01-13 16:59:34 +0300
committerJoe Hershberger <joe.hershberger@ni.com>2016-01-28 12:32:42 -0600
commitb18acb0a115dfbbd31ee53081b514cab6fe2f262 (patch)
treeaccb00059debddb9b9b63402808b67e5a57d0581 /include/phy.h
parent4dae610b657fa0c7864cf68d4f44c786ff968c83 (diff)
downloadu-boot-b18acb0a115dfbbd31ee53081b514cab6fe2f262.tar.gz
drivers/net/phy: introduce phy_set_supported()
This new function will allow MAC drivers to override supported capabilities of the phy. It is required when MAC cannot handle all speeds supported by phy. For example phy supports up-to 1Gb connections while MAC may only work in modes up to 100 or even 10 Mbit/sec. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/phy.h')
-rw-r--r--include/phy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/phy.h b/include/phy.h
index b793e90532..e030c9ff2e 100644
--- a/include/phy.h
+++ b/include/phy.h
@@ -234,6 +234,7 @@ int phy_startup(struct phy_device *phydev);
int phy_config(struct phy_device *phydev);
int phy_shutdown(struct phy_device *phydev);
int phy_register(struct phy_driver *drv);
+int phy_set_supported(struct phy_device *phydev, u32 max_speed);
int genphy_config_aneg(struct phy_device *phydev);
int genphy_restart_aneg(struct phy_device *phydev);
int genphy_update_link(struct phy_device *phydev);