commit 0405a5cec3406f19e69da07c8111a6bf1088ac29 upstream.
For persistent RAM outside of main memory, the memory may have limitations
on supported accesses. For internal RAM on highbank platform exclusive
accesses are not supported and will hang the system. So atomic_cmpxchg
cannot be used. This commit uses spinlock protection for buffer size and
start updates on ioremapped regions instead.
Signed-off-by: Rob Herring <email@example.com>
Acked-by: Anton Vorontsov <firstname.lastname@example.org>
Signed-off-by: Tony Luck <email@example.com>
[hkp: Backported to 3.10: adjust context]
Signed-off-by: HuKeping <firstname.lastname@example.org>