Re: [PATCH] dspi: config dspi master regmap with right mode depend on BE or LE

From: Mark Brown
Date: Wed Apr 13 2016 - 10:07:45 EST


On Wed, Apr 13, 2016 at 07:03:22PM +0800, Po Liu wrote:
> When kernel config with big endian mode, spi master need
> to config regmap data value to be little endian mode. Or else,
> the kernel boot will hang.

> +#ifdef CONFIG_CPU_BIG_ENDIAN
> + .val_format_endian = REGMAP_ENDIAN_LITTLE,
> +#endif

This should be unconditionally set to native endian if the IP changes
endianness along with the CPU.

Attachment: signature.asc
Description: PGP signature