]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-linux/mpm-transport.git/commitdiff
put EDMA and interrupt configuration back
authorMing Wei <mwei@ti.com>
Thu, 4 Jun 2015 14:24:32 +0000 (09:24 -0500)
committerMing Wei <mwei@ti.com>
Thu, 4 Jun 2015 14:24:32 +0000 (09:24 -0500)
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;
 }
 
@@ -1370,7 +1368,7 @@ int mpm_transport_hyplnk_disable_peripheral(mpm_transport_cfg_t *sp)
                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++)
@@ -1398,7 +1396,7 @@ int mpm_transport_hyplnk_disable_peripheral(mpm_transport_cfg_t *sp)
                }
                pthread_mutex_destroy(&td->mutex_rw[i]);
        }
-#endif
+
        td->fd[index] = hyplnkActiveIF[index].hyp_fd;
        if (hyplnkActiveIF[index].slavesActive == 0)
        {