lkml.org 
[lkml]   [2017]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH] net: stmmac: enable EEE in MII, GMII or RGMII only
>  bool stmmac_eee_init(struct stmmac_priv *priv)
> {
> struct net_device *ndev = priv->dev;
> + int interface = priv->plat->interface;
> unsigned long flags;
> bool ret = false;
>
> + if ((interface != PHY_INTERFACE_MODE_MII) &&
> + (interface != PHY_INTERFACE_MODE_GMII) &&
> + (interface != PHY_INTERFACE_MODE_RGMII) &&
> + (interface != PHY_INTERFACE_MODE_RGMII_ID) &&
> + (interface != PHY_INTERFACE_MODE_RGMII_TXID) &&
> + (interface != PHY_INTERFACE_MODE_RGMII_RXID))
> + goto out;

phy_interface_mode_is_rgmii() will make this smaller.

Andrew

\
 
 \ /
  Last update: 2017-12-05 19:06    [W:0.033 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site