mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 23:02:02 -04:00
Timestamp after sent.
This commit is contained in:
parent
55f84274e3
commit
c59557f5d4
2 changed files with 4 additions and 4 deletions
|
|
@ -316,7 +316,6 @@ fw_asystart(struct fw_xfer *xfer)
|
|||
s = splfw();
|
||||
/* Protect from interrupt/timeout */
|
||||
FW_GLOCK(fc);
|
||||
microtime(&xfer->tv);
|
||||
xfer->flag = FWXF_INQ;
|
||||
STAILQ_INSERT_TAIL(&xfer->q->q, xfer, link);
|
||||
#if 0
|
||||
|
|
@ -364,12 +363,12 @@ firewire_xfer_timeout(void *arg, int pending)
|
|||
FW_GLOCK(fc);
|
||||
for (i = 0; i < 0x40; i ++) {
|
||||
while ((xfer = STAILQ_FIRST(&fc->tlabels[i])) != NULL) {
|
||||
if (timevalcmp(&xfer->tv, &tv, >))
|
||||
/* the rests are newer than this */
|
||||
break;
|
||||
if ((xfer->flag & FWXF_SENT) == 0)
|
||||
/* not sent yet */
|
||||
break;
|
||||
if (timevalcmp(&xfer->tv, &tv, >))
|
||||
/* the rests are newer than this */
|
||||
break;
|
||||
device_printf(fc->bdev,
|
||||
"split transaction timeout: "
|
||||
"tl=0x%x flag=0x%02x\n", i, xfer->flag);
|
||||
|
|
|
|||
|
|
@ -1159,6 +1159,7 @@ fwohci_txd(struct fwohci_softc *sc, struct fwohci_dbch *dbch)
|
|||
#endif
|
||||
fw_xfer_done(xfer);
|
||||
} else {
|
||||
microtime(&xfer->tv);
|
||||
xfer->flag = FWXF_SENT;
|
||||
if (err == EBUSY) {
|
||||
xfer->flag = FWXF_BUSY;
|
||||
|
|
|
|||
Loading…
Reference in a new issue