From 1975a8aad0192e1acfa0330837b56839e43a5bdc Mon Sep 17 00:00:00 2001 From: Troy Kisky Date: Thu, 16 Aug 2012 10:38:56 +0200 Subject: phy: add phy_connect_by_mask It is useful to be able to try a range of possible phy addresses to connect. Signed-off-by: Troy Kisky --- include/phy.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/phy.h b/include/phy.h index 3c30f115b6e..aea462ffe8c 100644 --- a/include/phy.h +++ b/include/phy.h @@ -202,6 +202,8 @@ int phy_reset(struct phy_device *phydev); struct phy_device *phy_connect(struct mii_dev *bus, int addr, struct eth_device *dev, phy_interface_t interface); +struct phy_device *phy_connect_by_mask(struct mii_dev *bus, unsigned phy_mask, + struct eth_device *dev, phy_interface_t interface); int phy_startup(struct phy_device *phydev); int phy_config(struct phy_device *phydev); int phy_shutdown(struct phy_device *phydev); -- cgit v1.2.3