]> Git Repo - linux.git/commit
stmmac: fix adjust link call in case of a switch is attached
authorGiuseppe CAVALLARO <[email protected]>
Tue, 5 Apr 2016 06:46:57 +0000 (08:46 +0200)
committerDavid S. Miller <[email protected]>
Wed, 6 Apr 2016 20:34:03 +0000 (16:34 -0400)
commit52f95bbfcf72126a9f90a386a974fcbe6c6cae46
tree843ba59d0b0aea925f385cf2c1240251c3d677a4
parent6ae81ced378820c4c6434b1dedba14a7122df310
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 <[email protected]>
Signed-off-by: Giuseppe Cavallaro <[email protected]>
Tested-by: Gabriel Fernandez <[email protected]>
Cc: Alexandre TORGUE <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
This page took 0.044517 seconds and 4 git commands to generate.