bootcount: flush after storing the bootcounter
authorStefano Babic <sbabic@denx.de>
Thu, 22 Feb 2018 11:30:41 +0000 (12:30 +0100)
committerStefano Babic <sbabic@denx.de>
Mon, 23 Jul 2018 07:55:20 +0000 (09:55 +0200)
commit1947c2d2a08fb07330d15fc30416969afbe61bbc
tree7f0b74ce98fe5f461208e0a1d314d14d8cab8304
parent474ecd2c84d97314b8145fbe3a57887f41b2edb3
bootcount: flush after storing the bootcounter

If the bootcounter address is in a cached memory,
a flush of dcache must occur after updateing the bootcounter.

Issue found on i.MX6 where bootcounter is put into the internal
(cached) IRAM.

Signed-off-by: Stefano Babic <sbabic@denx.de>
drivers/bootcount/bootcount.c