]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/mcsdk-tools.git/blobdiff - post/src/post.c
update mcsdk_tools based on platform library 00.03
[keystone-rtos/mcsdk-tools.git] / post / src / post.c
old mode 100644 (file)
new mode 100755 (executable)
index cfa6c49..417e7df
@@ -462,7 +462,7 @@ int32_t Init_sgmii (uint32_t macPortNum)
         CSL_SGMII_endRxTxSoftReset (macPortNum);
 
            /* Wait for SGMII Link */
-        if (!cpswSimTest && ((cpswLpbkMode == CPSW_LOOPBACK_EXTERNAL) || (cpswLpbkMode == CPSW_LOOPBACK_NONE)))
+        if (!cpswSimTest)
         {
                do
                {
@@ -774,7 +774,7 @@ post_test_emac_loopback
     platform_delay(100);
     
     /* Receive the loopback packet */
-    if (ret = cpmac_drv_receive (&nDevice, test_buf) < 0)
+    if (ret = cpmac_drv_receive (&nDevice, test_buf) <= 0)
     {
         return POST_TEST_RESULT_FAILED;
     }