arch/arm/src/imxrt/imxrt_enet.c: Fix a race condition in setting up the Ethernet Tx transfer.

This commit is contained in:
Dave Marples
2018-09-26 10:59:47 -06:00
committed by Gregory Nutt
parent 6e4545a924
commit 4eb118afd1
2 changed files with 12 additions and 3 deletions
+3 -1
View File
@@ -57,6 +57,7 @@
* Private Functions
****************************************************************************/
#if defined(CONFIG_I2C_DRIVER) && defined(CONFIG_IMXRT_LPI2C1)
static void imxrt_i2c_register(int bus)
{
FAR struct i2c_master_s *i2c;
@@ -77,6 +78,7 @@ static void imxrt_i2c_register(int bus)
}
}
}
#endif
/****************************************************************************
* Public Functions
@@ -109,7 +111,7 @@ int imxrt_bringup(void)
}
#endif
#if defined ( CONFIG_I2C_DRIVER ) & (CONFIG_IMXRT_LPI2C1)
#if defined(CONFIG_I2C_DRIVER) && defined(CONFIG_IMXRT_LPI2C1)
imxrt_i2c_register(1);
#endif