android_kernel_xiaomi_sm8350/drivers/spi
David Brownell 529ba0d966 spi: bitbang bugfix in message setup
Bugfix to spi_bitbang infrastructure: make sure to always set transfer
parameters on the first pass through the message's per-transfer loop.
This can matter with drivers that replace the per-word or per-buffer
transfer primitives, on busses with multiple SPI devices.

Previously, this could have started messages using the settings left after
previous messages.  The problem was observed when a high speed chip
(m25p80 type flash) was running very slowly because a low speed device
(avr8 microcontroller) had previously used the bus.  Similar faults could
have driven the low speed device too fast, or used an unexpected word
size.

Acked-by: Steven A. Falco <sfalco@harris.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-06-30 18:56:00 -07:00
..
amba-pl022.c [ARM] 5546/1: ARM PL022 SSP/SPI driver v3 2009-06-10 22:39:52 +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 spi_mpc8xxx: s/83xx/8xxx/g 2009-06-19 16:46:05 -07:00
Makefile spi_mpc8xxx: s/83xx/8xxx/g 2009-06-19 16:46:05 -07:00
mpc52xx_psc_spi.c mpc52xx_psc_spi: convert to cs_control callback 2009-06-18 13:03:42 -07:00
omap2_mcspi.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
omap_uwire.c spi: add spi_master flag word 2009-06-30 18:56:00 -07:00
orion_spi.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
pxa2xx_spi.c pxa2xx_spi: fix for SPI_CS_HIGH 2009-06-18 13:03:42 -07: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: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-06 10:44:37 -08:00
spi_gpio.c spi-gpio: allow operation without CS signal 2009-04-02 19:04:51 -07:00
spi_imx.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
spi_lm70llp.c hwmon: (lm70) Code streamlining and cleanup 2009-01-07 16:37:34 +01:00
spi_mpc8xxx.c spi_mpc8xxx: s/83xx/8xxx/g 2009-06-19 16:46:05 -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: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
spi_sh_sci.c
spi_txx9.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00
spi.c spi: fix spi_write_then_read() comment 2009-06-18 13:03:42 -07:00
spidev.c spi: new spi->mode bits 2009-06-30 18:56:00 -07:00
tle62x0.c
xilinx_spi.c spi: move more spi_setup() functionality into core 2009-06-18 13:03:42 -07:00