android_kernel_xiaomi_sm8350/drivers/spi
Luotao Fu 4a495b1c43 mpc52xx_spi: fix clearing status register
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
master. Flag is cleared automatically by an SPI status register read (with MODF
set) followed by a SPI control register 1 write.
Hence simply rereading the register is not sufficient to clear the flag. We
redo the write also to make sure to clear the flag.

V2 Changes:
* change variable type from int to u8

Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2009-12-08 18:48:13 -07:00
..
amba-pl022.c ARM: 5741/1: pl022: fix peripheral id for ST vendor 2009-10-05 17:55:55 +01:00
atmel_spi.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
atmel_spi.h
au1550_spi.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
Kconfig powerpc/5200: Add mpc5200-spi (non-PSC) device driver 2009-11-04 15:34:18 -07:00
Makefile powerpc/5200: Add mpc5200-spi (non-PSC) device driver 2009-11-04 15:34:18 -07:00
mpc52xx_psc_spi.c spi/mpc52xx: replace printk with dev_err 2009-11-04 16:42:47 -07:00
mpc52xx_spi.c mpc52xx_spi: fix clearing status register 2009-12-08 18:48:13 -07:00
omap2_mcspi.c spi: McSPI support for OMAP4 2009-09-23 07:39:44 -07:00
omap_uwire.c trivial: remove unnecessary semicolons 2009-09-21 15:14:58 +02:00
orion_spi.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
pxa2xx_spi.c Merge branch 'origin' into for-linus 2009-09-24 21:22:33 +01:00
spi_bfin5xx.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
spi_bitbang.c spi: bitbang bugfix in message setup 2009-06-30 18:56:00 -07:00
spi_butterfly.c
spi_gpio.c spi-gpio: allow operation without CS signal 2009-04-02 19:04:51 -07:00
spi_imx.c spi-imx: strip down chipselect function to only drive the chipselect 2009-10-01 16:11:17 -07:00
spi_lm70llp.c
spi_mpc8xxx.c spi_mpc8xxx: s/83xx/8xxx/g 2009-06-19 16:46:05 -07:00
spi_ppc4xx.c spi: add spi_ppc4xx driver 2009-09-23 07:39:43 -07:00
spi_s3c24xx_gpio.c [ARM] S3C24XX: GPIO: Move gpio functions out of <mach/hardware.h> 2009-05-18 16:25:40 +01:00
spi_s3c24xx.c spi_s3c24xx: cache device setup data 2009-09-23 07:39:44 -07:00
spi_sh_sci.c
spi_stmp.c spi: Freescale STMP driver 2009-09-23 07:39:44 -07:00
spi_txx9.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
spi.c spi: handle TX-only/RX-only 2009-09-23 07:39:44 -07:00
spidev.c const: constify remaining file_operations 2009-10-01 16:11:11 -07:00
tle62x0.c spi: prefix modalias with "spi:" 2009-09-23 07:39:43 -07:00
xilinx_spi.c Xilinx: SPI: Fix bits_per_word for transfers 2009-11-04 16:42:47 -07:00