stm32: stm32_flash: add memory barrier during flash write
authorVikas Manocha <vikas.manocha@st.com>
Mon, 4 Apr 2016 23:49:02 +0000 (16:49 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 12 Apr 2016 00:48:23 +0000 (20:48 -0400)
commit9082517a85930740f59966fcf13293c38792afe8
treed8ad6f8b0c3b1d64edadd7291938f80019447f22
parent3ba1352b97999546610cc9b8708281b60d660e48
stm32: stm32_flash: add memory barrier during flash write

After writing data to flash space, next instruction is checking if flash
controller is busy writing to the flash memory. Memory barrier is required here
to avoid transaction re-ordering for data write and busy status check.

Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
drivers/mtd/stm32_flash.c