Re: [PATCH net-next v2] net: stmmac: fix LPI transitioning for dwmac4

2017-11-14 Thread David Miller
From: Niklas Cassel Date: Tue, 14 Nov 2017 11:15:54 +0100 > The LPI transitioning logic in stmmac_main uses > priv->tx_path_in_lpi_mode to enter/exit LPI. > > However, priv->tx_path_in_lpi_mode is assigned > using the return value from host_irq_status(). > > So for dwmac4, priv->tx_path_in_lpi_

[PATCH net-next v2] net: stmmac: fix LPI transitioning for dwmac4

2017-11-14 Thread Niklas Cassel
The LPI transitioning logic in stmmac_main uses priv->tx_path_in_lpi_mode to enter/exit LPI. However, priv->tx_path_in_lpi_mode is assigned using the return value from host_irq_status(). So for dwmac4, priv->tx_path_in_lpi_mode was always false, so stmmac_tx_clean() would always try to put us in