Added phy management support by using phy abstraction layer APIs.
Signed-off-by: Iyappan Subramanian
---
drivers/net/ethernet/apm/xgene-v2/Makefile | 2 +-
drivers/net/ethernet/apm/xgene-v2/mac.c| 2 +-
drivers/net/ethernet/apm/xgene-v2/mac.h| 1 +
drivers/net/ethernet/apm/xgene-v2
> @@ -511,9 +512,9 @@ static int xge_close(struct net_device *ndev)
> {
> struct xge_pdata *pdata = netdev_priv(ndev);
>
> - netif_carrier_off(ndev);
> netif_stop_queue(ndev);
> xge_mac_disable(pdata);
> + phy_stop(ndev->phydev);
>
> xge_intr_disable(pdata);
>
On Tue, Mar 21, 2017 at 1:35 PM, Andrew Lunn wrote:
>> @@ -511,9 +512,9 @@ static int xge_close(struct net_device *ndev)
>> {
>> struct xge_pdata *pdata = netdev_priv(ndev);
>>
>> - netif_carrier_off(ndev);
>> netif_stop_queue(ndev);
>> xge_mac_disable(pdata);
>> + phy_s
d Miller; netdev; Florian Fainelli; David Laight; linux-arm-
> ker...@lists.infradead.org; patches; Keyur Chudgar
> Subject: Re: [PATCH net-next 1/4] drivers: net: xgene-v2: Add MDIO
> support
>
> On Tue, Mar 21, 2017 at 1:35 PM, Andrew Lunn wrote:
> >> @@ -511,9 +512,