nsm, pmc: Check for missing HW time stamps.
As of 510777deca1d message layer no longer returns -ETIME. Callers of msg_post_recv() are expected to check for missing time stamps themselves. This patch updates the two forgotten call sites. Fixes: 510777deca1d ("msg: Move the check for missing HW time stamps into caller.") Signed-off-by: Richard Cochran <richardcochran@gmail.com>
This commit is contained in:
parent
0455489158
commit
7a76c36b34
9
nsm.c
9
nsm.c
@ -337,16 +337,17 @@ static struct ptp_message *nsm_recv(struct nsm *nsm, int fd)
|
||||
case -EBADMSG:
|
||||
pr_err("bad message");
|
||||
break;
|
||||
case -ETIME:
|
||||
pr_err("received %s without timestamp",
|
||||
msg_type_string(msg_type(msg)));
|
||||
break;
|
||||
case -EPROTO:
|
||||
pr_debug("ignoring message");
|
||||
break;
|
||||
}
|
||||
goto failed;
|
||||
}
|
||||
if (msg_sots_missing(msg)) {
|
||||
pr_err("received %s without timestamp",
|
||||
msg_type_string(msg_type(msg)));
|
||||
goto failed;
|
||||
}
|
||||
|
||||
return msg;
|
||||
failed:
|
||||
|
@ -326,16 +326,17 @@ struct ptp_message *pmc_recv(struct pmc *pmc)
|
||||
case -EBADMSG:
|
||||
pr_err("bad message");
|
||||
break;
|
||||
case -ETIME:
|
||||
pr_err("received %s without timestamp",
|
||||
msg_type_string(msg_type(msg)));
|
||||
break;
|
||||
case -EPROTO:
|
||||
pr_debug("ignoring message");
|
||||
break;
|
||||
}
|
||||
goto failed;
|
||||
}
|
||||
if (msg_sots_missing(msg)) {
|
||||
pr_err("received %s without timestamp",
|
||||
msg_type_string(msg_type(msg)));
|
||||
goto failed;
|
||||
}
|
||||
|
||||
return msg;
|
||||
failed:
|
||||
|
Loading…
x
Reference in New Issue
Block a user