STM32 F7 Ethernet: RX/TX descriptors should be flushed to memory when they are first initialized
This commit is contained in:
parent
3f01c87820
commit
e2a62ac814
2 changed files with 14 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
2
configs
2
configs
|
|
@ -1 +1 @@
|
|||
Subproject commit d8f3b1da89695fc704fc1e2e405c2879210becc5
|
||||
Subproject commit 78716e8dbacee7ffe65016ab5511c248835341c8
|
||||
Loading…
Add table
Reference in a new issue