summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/tsec/if_tsec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/tsec/if_tsec.c b/sys/dev/tsec/if_tsec.c
index d6d5edd..f16a1d3 100644
--- a/sys/dev/tsec/if_tsec.c
+++ b/sys/dev/tsec/if_tsec.c
@@ -870,11 +870,11 @@ tsec_poll(struct ifnet *ifp, enum poll_cmd cmd, int count)
}
if (cmd == POLL_AND_CHECK_STATUS) {
- ie = TSEC_READ(sc, TSEC_REG_IEVENT);
+ tsec_error_intr_locked(sc, count);
/* Clear all events reported */
+ ie = TSEC_READ(sc, TSEC_REG_IEVENT);
TSEC_WRITE(sc, TSEC_REG_IEVENT, ie);
- tsec_error_intr_locked(sc, count);
}
tsec_transmit_intr_locked(sc);
OpenPOWER on IntegriCloud