drivers: dma: stm32: Use volatile for flag used in ISR

Use volatile for flag shared between normal code and ISR to
prevent the compiler from possibly optimizing it away.

Signed-off-by: Erwin Rol <erwin@erwinrol.com>
This commit is contained in:
Erwin Rol 2020-08-23 09:13:21 +02:00 committed by Carles Cufí
commit 1c6a405ccb

View file

@ -16,7 +16,7 @@ struct dma_stm32_stream {
int mux_channel; /* stores the dmamux channel */ int mux_channel; /* stores the dmamux channel */
#endif /* CONFIG_DMAMUX_STM32 */ #endif /* CONFIG_DMAMUX_STM32 */
bool source_periph; bool source_periph;
bool busy; volatile bool busy;
uint32_t src_size; uint32_t src_size;
uint32_t dst_size; uint32_t dst_size;
void *user_data; /* holds the client data */ void *user_data; /* holds the client data */