On 17/07/17 14:26, laurentiu.tudor@nxp.com wrote:> From: Laurentiu Tudor <laurentiu.tudor@nxp.com>> > Split the 64-bit accesses in 32-bit accesses because there's no real> constrain in MC to do only atomic 64-bit. There's only one place> where ordering is important: when writing the MC command header the> first 32-bit part of the header must be written last.> We do this switch in order to allow compiling the driver on 32-bit.

#include <linux/io-64-nonatomic-hi-lo.h>

Then you can just use writeq()/writeq_relaxed()/readq_relaxed() on32-bit platforms as well.