On Wed, Dec 13, 2017 at 2:18 AM, Andrew Lunn <and...@lunn.ch> wrote: >> > +static int netsec_mac_update_to_phy_state(struct netsec_priv *priv) >> > +{ >> > + struct phy_device *phydev = priv->ndev->phydev; >> > + u32 value = 0; >> > + >> > + value = phydev->duplex ? NETSEC_GMAC_MCR_REG_FULL_DUPLEX_COMMON : >> > + NETSEC_GMAC_MCR_REG_HALF_DUPLEX_COMMON; >> > + >> > + if (phydev->speed != SPEED_1000) >> > + value |= NETSEC_MCR_PS; >> > + >> > + if (priv->phy_interface != PHY_INTERFACE_MODE_GMII && >> > + phydev->speed == SPEED_100) >> > + value |= NETSEC_GMAC_MCR_REG_FES; >> > + >> > + value |= NETSEC_GMAC_MCR_REG_CST | NETSEC_GMAC_MCR_REG_JE; >> > + >> > + if (priv->phy_interface == PHY_INTERFACE_MODE_RGMII) >> > + value |= NETSEC_GMAC_MCR_REG_IBN; > > phy_interface_mode_is_rgmii() ?? > Yes, thank you.
- [PATCHv2 0/3] Socionext Synquacer NETSEC driver jassisinghbrar
- [PATCHv2 2/3] net: socionext: Add Synquacer NetSec dri... jassisinghbrar
- Re: [PATCHv2 2/3] net: socionext: Add Synquacer Ne... Ard Biesheuvel
- Re: [PATCHv2 2/3] net: socionext: Add Synquace... Andrew Lunn
- Re: [PATCHv2 2/3] net: socionext: Add Synquace... Andrew Lunn
- Re: [PATCHv2 2/3] net: socionext: Add Synq... Jassi Brar
- Re: [PATCHv2 2/3] net: socionext: Add Synquace... Jassi Brar
- [PATCHv2 1/3] dt-bindings: net: Add DT bindings for So... jassisinghbrar
- Re: [PATCHv2 1/3] dt-bindings: net: Add DT binding... Mark Rutland
- Re: [PATCHv2 1/3] dt-bindings: net: Add DT bin... Jassi Brar
- Re: [PATCHv2 1/3] dt-bindings: net: Add DT... Rob Herring
- Re: [PATCHv2 1/3] dt-bindings: net: Add DT binding... Andrew Lunn
- [PATCHv2 3/3] MAINTAINERS: Add entry for Socionext eth... jassisinghbrar