[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171205180351.GT12805@lunn.ch>
Date: Tue, 5 Dec 2017 19:03:51 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Jerome Brunet <jbrunet@...libre.com>
Cc: Giuseppe Cavallaro <peppe.cavallaro@...com>,
Alexandre Torgue <alexandre.torgue@...com>,
netdev@...r.kernel.org, linux-amlogic@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [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
Powered by blists - more mailing lists