summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a1adc25)
raw | patch | inline | side by side (parent: a1adc25)
author | Tinku Mannan <tmannan@ti.com> | |
Mon, 24 Feb 2020 21:43:00 +0000 (16:43 -0500) | ||
committer | Mahesh Radhakrishnan <a0875154@ti.com> | |
Tue, 25 Feb 2020 22:48:42 +0000 (16:48 -0600) |
added task to call nimu_poll_ctrl API to poll RX management ring to
process link status management response from dual mac ICSSG FW
Signed-off-by: Tinku Mannan <tmannan@ti.com>
process link status management response from dual mac ICSSG FW
Signed-off-by: Tinku Mannan <tmannan@ti.com>
packages/ti/transport/ndk/nimu/src/v7/nimu_eth.c | patch | blob | history |
diff --git a/packages/ti/transport/ndk/nimu/src/v7/nimu_eth.c b/packages/ti/transport/ndk/nimu/src/v7/nimu_eth.c
index 21e9f5f0b2876a5f9ce1998c393f3b26e469c66b..6b5c83161bbd3307736f7a2c785cebb05919f2b7 100644 (file)
}
}
+#ifdef NIMU_ICSSG
+static void nimu_task_poll_ctrl (uint32_t arg0, uint32_t arg1)
+{
+ uint32_t portNum = (uint32_t) arg0;
+ (void)arg1;
+ while (nimuPollLoop == 1U)
+ {
+ /* Poll for EMAC_POLL_RX_MGMT_RING2 for mgmt responses from FW */
+ emac_poll_ctrl(portNum, 0, EMAC_POLL_RX_MGMT_RING2, EMAC_POLL_TX_COMPLETION_RING1);
+ Osal_TaskSleep(100);
+ }
+}
+#endif
+
/**
* @b NIMU_start
* @n
nimu_init_pruicss(port_num);
#endif
Osal_TaskCreate_v2((void*)nimu_task_poll_pkt, port_num);
+#ifdef NIMU_ICSSG
+ Osal_TaskCreate_v2((void*)nimu_task_poll_ctrl, port_num);
+#endif
NIMU_drv_log ("EMAC has been started successfully\n");
}