summaryrefslogtreecommitdiffstats
path: root/libs/NCSI
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2020-02-27 21:32:43 -0700
committerGitHub <noreply@github.com>2020-02-27 21:32:43 -0700
commitb43a7470d4cb61a0e26a15e667a77ab64e839220 (patch)
tree35df7cd1f8614d70a2fadc96bb33220916be4217 /libs/NCSI
parenta74f653cee201229873b86fc526a62a4ca156b9e (diff)
downloadbcm5719-ortega-b43a7470d4cb61a0e26a15e667a77ab64e839220.tar.gz
bcm5719-ortega-b43a7470d4cb61a0e26a15e667a77ab64e839220.zip
ncsi: Check the port state any time a get link status command is received. (#47)
Diffstat (limited to 'libs/NCSI')
-rw-r--r--libs/NCSI/ncsi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/NCSI/ncsi.c b/libs/NCSI/ncsi.c
index 219cfe3..9be9f81 100644
--- a/libs/NCSI/ncsi.c
+++ b/libs/NCSI/ncsi.c
@@ -408,6 +408,8 @@ static void getLinkStatusHandler(NetworkFrame_t *frame)
debug("Link Status [%d], TX %d, RX %d\n", frame->controlPacket.ChannelID, tx, rx);
+ Network_checkPortState(port);
+
APE_aquireLock();
stat.r16 = MII_readRegister(port->device, phy, (mii_reg_t)REG_MII_AUXILIARY_STATUS_SUMMARY);
APE_releaseLock();
OpenPOWER on IntegriCloud