Re: [PATCH 1/3] mpc52xx_spi: fix clearing status register

2009-11-11 Thread Wolfram Sang
On Tue, Nov 10, 2009 at 10:12:07AM +0100, Luotao Fu wrote: > Before reading status register to check MODF failure, we have to clear it > first since the MODF flag will be set after initializing the spi master, > if the hardware comes up with a low SS. The processor datasheet reads: > Mode Fault fla

[PATCH 1/3] mpc52xx_spi: fix clearing status register

2009-11-10 Thread Luotao Fu
Before reading status register to check MODF failure, we have to clear it first since the MODF flag will be set after initializing the spi master, if the hardware comes up with a low SS. The processor datasheet reads: Mode Fault flag -- bit sets if SS input goes low while SPI is configured as a mas