summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fa9b7a2)
raw | patch | inline | side by side (parent: fa9b7a2)
author | Ming Wei <mwei@ti.com> | |
Thu, 4 Jun 2015 14:24:32 +0000 (09:24 -0500) | ||
committer | Ming Wei <mwei@ti.com> | |
Thu, 4 Jun 2015 14:24:32 +0000 (09:24 -0500) |
src/transport/hyplnk/mpm_transport_hyplnk.c | patch | blob | history |
diff --git a/src/transport/hyplnk/mpm_transport_hyplnk.c b/src/transport/hyplnk/mpm_transport_hyplnk.c
index f61840b26c1d86edd7878246abe9a0131cf76974..38bc6e27bd9049cf6520e64047d393932e5c1508 100755 (executable)
@@ -1301,7 +1301,6 @@ int mpm_transport_hyplnk_enable_peripheral(mpm_transport_cfg_t *sp, mpm_transpor
close(hyplnkActiveIF[index].uio_fd);
return -1;
}
-#if 0
if (strlen(sp->edma3_name) > 1)
{
if (edma3InstInit[sp->edma3_inst] == 0)
@@ -1319,7 +1318,6 @@ int mpm_transport_hyplnk_enable_peripheral(mpm_transport_cfg_t *sp, mpm_transpor
ret = -1;
}
}
-#endif
}
if (ret)
@@ -1330,7 +1328,7 @@ int mpm_transport_hyplnk_enable_peripheral(mpm_transport_cfg_t *sp, mpm_transpor
close(hyplnkActiveIF[index].uio_fd);
return -1;
}
-#if 0
+
if(td->intEnable) {
mpm_transport_hyplnk_configure_interrupt_events(td);
}
@@ -1345,7 +1343,7 @@ int mpm_transport_hyplnk_enable_peripheral(mpm_transport_cfg_t *sp, mpm_transpor
}
sp->msmc_cfg_index = -1;
sp->rhMpax = NULL;
-#endif
+
return 0;
}
mpm_transport_hyplnk_reset(td, index);
close(hyplnkActiveIF[index].uio_fd);
}
-#if 0
+
if (strlen(sp->edma3_name) > 1) {
if (sp->edma3_prealloc > 0)
for (i=0; i<sp->edma3_prealloc;i++)
}
pthread_mutex_destroy(&td->mutex_rw[i]);
}
-#endif
+
td->fd[index] = hyplnkActiveIF[index].hyp_fd;
if (hyplnkActiveIF[index].slavesActive == 0)
{