Giuseppe CAVALLARO 52f95bbfcf stmmac: fix adjust link call in case of a switch is attached
While initializing the phy, the stmmac driver sets the
PHY_IGNORE_INTERRUPT so the PAL won't call the adjust hook
that is needed, on some platforms, e.g. STi, to invoke the glue.

The patch allows the PAL to poll the stmmac_adjust_link just one time
in case of a switch is attached, setting later the PHY_IGNORE_INTERRUPT
flag.
Moving this kind of logic inside the adjust_link it makes sense to
anticipate the check for EEE that will never initialized in this
scenario.

Reported-by: Gabriel Fernandez <gabriel.fernandez@linaro.org>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Tested-by: Gabriel Fernandez <gabriel.fernandez@linaro.org>
Cc: Alexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-04-06 16:34:03 -04:00
..
2016-02-16 16:06:13 -05:00
2016-03-01 15:19:43 -05:00
2016-02-25 16:51:04 -05:00
2015-11-20 14:48:27 -05:00
2016-01-29 20:33:38 -08:00
2016-03-03 17:17:14 -05:00
2016-02-15 11:18:22 +01:00
2016-02-25 16:51:05 -05:00
2016-01-10 22:50:14 -05:00
2016-02-17 16:15:45 -05:00
2016-03-27 22:41:37 -04:00
2016-01-04 16:07:16 -05:00
2016-01-07 14:31:26 -05:00
2016-03-07 15:39:45 -05:00