mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
STM32 F7 Ethernet: RX/TX descriptors should be flushed to memory when they are first initialized
This commit is contained in:
@@ -2984,7 +2984,13 @@ static void stm32_txdescinit(struct stm32_ethmac_s *priv,
|
||||
}
|
||||
}
|
||||
|
||||
/* Set Transmit Desciptor List Address Register */
|
||||
/* Flush all of the initialized TX descriptors to physical memory */
|
||||
|
||||
arch_clean_dcache((uintptr_t)txtable,
|
||||
(uintptr_t)txtable +
|
||||
TXTABLE_SIZE * sizeof(union stm32_txdesc_u));
|
||||
|
||||
/* Set Transmit Descriptor List Address Register */
|
||||
|
||||
stm32_putreg((uint32_t)&txtable[0].txdesc, STM32_ETH_DMATDLAR);
|
||||
}
|
||||
@@ -3068,6 +3074,12 @@ static void stm32_rxdescinit(struct stm32_ethmac_s *priv,
|
||||
}
|
||||
}
|
||||
|
||||
/* Flush all of the initialized RX descriptors to physical memory */
|
||||
|
||||
arch_clean_dcache((uintptr_t)rxtable,
|
||||
(uintptr_t)rxtable +
|
||||
RXTABLE_SIZE * sizeof(union stm32_rxdesc_u));
|
||||
|
||||
/* Set Receive Descriptor List Address Register */
|
||||
|
||||
stm32_putreg((uint32_t)&rxtable[0].rxdesc, STM32_ETH_DMARDLAR);
|
||||
|
||||
+1
-1
Submodule configs updated: d8f3b1da89...78716e8dba
Reference in New Issue
Block a user