Re: [PATCH net-next 2/3] net: mvpp2: use the GoP interrupt for link status changes

From: Andrew Lunn
Date: Thu Aug 31 2017 - 09:47:39 EST


On Thu, Aug 31, 2017 at 09:12:55AM +0200, Antoine Tenart wrote:
> +static void mvpp22_gop_unmask_irq(struct mvpp2_port *port)
> +{
> + u32 val;
> +
> + if (port->phy_interface == PHY_INTERFACE_MODE_RGMII ||
> + port->phy_interface == PHY_INTERFACE_MODE_RGMII_ID ||
> + port->phy_interface == PHY_INTERFACE_MODE_RGMII_RXID ||
> + port->phy_interface == PHY_INTERFACE_MODE_RGMII_TXID ||

Hi Antoine

phy_interface_mode_is_rgmii()

Andrew