[PATCH] spi: dspi: clear SPI_SR before enable interrupt

2016-10-17 Thread Yuan Yao
From: Yuan Yao Once dspi is used in uboot, the SPI_SR have been set by some value. At this time, if kernel enable the interrupt before clear the status flag, that will trigger the wrong interrupt. Signed-off-by: Yuan Yao --- drivers/spi/spi-fsl-dspi.c | 7

[PATCH] spi: dspi: clear SPI_SR before enable interrupt

2016-10-17 Thread Yuan Yao
From: Yuan Yao Once dspi is used in uboot, the SPI_SR have been set by some value. At this time, if kernel enable the interrupt before clear the status flag, that will trigger the wrong interrupt. Signed-off-by: Yuan Yao --- drivers/spi/spi-fsl-dspi.c | 7 +++ 1 file changed, 7