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

2016-04-18 Thread Po Liu
onfig dspi master regmap with right mode depend on BE or LE On Sun, Apr 17, 2016 at 02:41:40AM +, Scott Wood wrote: > Looking more closely, the binding has a big-endian property. It says > the default if that property is absent is native endian, which is > insane. Fix the bindi

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

2016-04-18 Thread Mark Brown
On Sun, Apr 17, 2016 at 02:41:40AM +, Scott Wood wrote: > Looking more closely, the binding has a big-endian property. It says > the default if that property is absent is native endian, which is > insane. Fix the binding to say that little endian is the default (this > change shouldn't break

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

2016-04-16 Thread Scott Wood
On 04/13/2016 06:12 AM, 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. > > Signed-off-by: Po Liu > --- > drivers/spi/spi-fsl-dspi.c | 3 +++ > 1 file changed, 3 insertions(+) >

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

2016-04-13 Thread Mark Brown
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, > +#en

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

2016-04-13 Thread Po Liu
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. Signed-off-by: Po Liu --- drivers/spi/spi-fsl-dspi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/