summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ca29bec)
raw | patch | inline | side by side (parent: ca29bec)
author | vwan@ti.com <vwan@ti.com> | |
Fri, 13 Dec 2013 01:56:21 +0000 (17:56 -0800) | ||
committer | Chris Ring <cring@ti.com> | |
Fri, 13 Dec 2013 20:11:20 +0000 (12:11 -0800) |
This patch allows NameServer requests to succeed even when some of the other
remote cores are not yet ready to handle NameServer requests.
remote cores are not yet ready to handle NameServer requests.
diff --git a/packages/ti/ipc/namesrv/NameServerRemoteRpmsg.c b/packages/ti/ipc/namesrv/NameServerRemoteRpmsg.c
index a005e51631e0dc85bf0f4c22e1ff9d1f4ec0b1bd..9ec68390b491912cd5d558e80974526a4677fe6d 100644 (file)
if (status == FALSE) {
Log_print0(Diags_INFO, FXNN": Wait for NS reply timed out\n");
/* return timeout failure */
- return (NameServer_E_OSFAILURE);
+ return (NameServer_E_TIMEOUT);
}
/* get the message */
diff --git a/packages/ti/sdo/ipc/nsremote/NameServerRemoteNotify.c b/packages/ti/sdo/ipc/nsremote/NameServerRemoteNotify.c
index 92e45621df3e833d0301c25399291cf6909b8923..409325061dd7a006a6c042976dd41b1c563b1788 100644 (file)
status = Semaphore_pend(semRemoteWait, NameServerRemoteNotify_timeout);
if (status == FALSE) {
- retval = NameServer_E_OSFAILURE;
+ retval = NameServer_E_TIMEOUT;
}
else {
/* getting here means we got the notification back */
index f99fc3249999603503b355e74ac468436d677b6d..43e46b9dfc35a8d770e4ab8ce68938b444d67cc7 100644 (file)
/* continue only if not found */
if ((status >= 0) ||
((status < 0) &&
- (status != NameServer_E_NOTFOUND))) {
+ (status != NameServer_E_NOTFOUND) &&
+ (status != NameServer_E_TIMEOUT))) {
break;
}
}
/* continue only if not found */
if ((status >= 0) ||
((status < 0) &&
- (status != NameServer_E_NOTFOUND))) {
+ (status != NameServer_E_NOTFOUND) &&
+ (status != NameServer_E_TIMEOUT))) {
break;
}
else {