summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/apm/xgene-v2/mdio.c
Commit message (Collapse)AuthorAgeFilesLines
* net: ethernet: Convert phydev advertize and supported from u32 to link modeAndrew Lunn2018-11-111-10/+12
| | | | | | | | | | | | There are a few MAC/PHYs combinations which now support > 1Gbps. These may need to make use of link modes with bits > 31. Thus their supported PHY features or advertised features cannot be implemented using the current bitmap in a u32. Convert to using a linkmode bitmap, which can support all the currently devices link modes, and is future proof as more modes are added. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
* drivers: net: xgene-v2: Fix error return code in xge_mdio_config()Wei Yongjun2017-04-251-0/+1
| | | | | | | | Fix to return error code -ENODEV from the no PHY found error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* drivers: net: xgene-v2: Add MDIO supportIyappan Subramanian2017-03-221-0/+167
Added phy management support by using phy abstraction layer APIs. Signed-off-by: Iyappan Subramanian <isubramanian@apm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
OpenPOWER on IntegriCloud