1
linux/drivers/spi
Jarkko Nikula 95c5c3ab7d spi/omap_mcspi: Fix broken last word xfer
Commit adef658 "spi/omap_mcspi: catch xfers of non-multiple SPI word size"
broke the transmission of last word in cases where access is multiple of
word size and word size is 16 or 32 bits.

Fix this by replacing the test "c > (word_len>>3)" in do-while loops with
"c >= 'pointer increment size'". This ensures that the last word is
transmitted in above case and still allow to break the loop and prevent
variable c underflow in cases where word size != 'pointer increment size'.

Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Tested-by: Sourav Poddar<sourav.poddar@ti.com>
Acked-by: Michael Jones <michael.jones@matrix-vision.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2011-03-23 15:04:15 -06:00
..
amba-pl022.c Merge branch 'spi/next' of git://git.secretlab.ca/git/linux-2.6 2011-03-18 10:56:02 -07:00
ath79_spi.c SPI: Add SPI controller driver for the Atheros AR71XX/AR724X/AR913X SoCs 2011-01-18 19:30:27 +01:00
atmel_spi.c Merge branch 'master' into for-next 2010-12-22 18:57:02 +01:00
atmel_spi.h
au1550_spi.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
coldfire_qspi.c spi/m68knommu: Coldfire QSPI platform support 2010-12-29 23:28:25 -07:00
davinci_spi.c Merge branch 'spi/next' of git://git.secretlab.ca/git/linux-2.6 2011-03-18 10:56:02 -07:00
dw_spi_mid.c spi/dw_spi: move dw_spi.h into drivers/spi 2011-03-18 10:26:52 -06:00
dw_spi_mmio.c spi/dw_spi: move dw_spi.h into drivers/spi 2011-03-18 10:26:52 -06:00
dw_spi_pci.c spi/dw_spi: move dw_spi.h into drivers/spi 2011-03-18 10:26:52 -06:00
dw_spi.c spi/dw_spi: move dw_spi.h into drivers/spi 2011-03-18 10:26:52 -06:00
dw_spi.h spi/dw_spi: move dw_spi.h into drivers/spi 2011-03-18 10:26:52 -06:00
ep93xx_spi.c spi/ep93xx: implemented driver for Cirrus EP93xx SPI controller 2010-05-25 00:23:16 -06:00
Kconfig Merge branch 'spi/next' of git://git.secretlab.ca/git/linux-2.6 2011-03-18 10:56:02 -07:00
Makefile Merge branch 'spi/next' of git://git.secretlab.ca/git/linux-2.6 2011-03-18 10:56:02 -07:00
mpc52xx_psc_spi.c dt/spi: Eliminate users of of_platform_{,un}register_driver 2011-02-28 13:22:44 -07:00
mpc52xx_spi.c dt/spi: Eliminate users of of_platform_{,un}register_driver 2011-02-28 13:22:44 -07:00
mpc512x_psc_spi.c dt/spi: Eliminate users of of_platform_{,un}register_driver 2011-02-28 13:22:44 -07:00
omap2_mcspi.c spi/omap_mcspi: Fix broken last word xfer 2011-03-23 15:04:15 -06:00
omap_spi_100k.c SPI100k: Fix 8-bit and RX-only transfers 2010-07-03 22:45:44 -06:00
omap_uwire.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
orion_spi.c spi/orion: Drop unnecessary null test 2010-09-29 17:31:29 +09:00
pxa2xx_spi_pci.c Merge commit 'v2.6.38-rc8' into spi/next 2011-03-12 01:25:53 -07:00
pxa2xx_spi.c driver-core: remove conditionals around devicetree pointers 2011-01-21 09:24:48 -07:00
spi_altera.c spi: New driver for Altera SPI 2011-02-22 14:59:53 -07:00
spi_bfin5xx.c spi/bfin_spi: return immediately after skipping to next transfer 2011-02-15 13:57:02 -07:00
spi_bitbang_txrx.h spi/bitbang: add support for SPI_MASTER_NO_{TX, RX} modes 2010-07-03 22:45:44 -06:00
spi_bitbang.c spi/bitbang: check for setup_transfer during initialization 2011-02-15 15:05:58 -07:00
spi_butterfly.c spi/bitbang: add support for SPI_MASTER_NO_{TX, RX} modes 2010-07-03 22:45:44 -06:00
spi_fsl_espi.c dt/spi: Eliminate users of of_platform_{,un}register_driver 2011-02-28 13:22:44 -07:00
spi_fsl_lib.c dt/spi: Eliminate users of of_platform_{,un}register_driver 2011-02-28 13:22:44 -07:00
spi_fsl_lib.h dt/spi: Eliminate users of of_platform_{,un}register_driver 2011-02-28 13:22:44 -07:00
spi_fsl_spi.c dt/spi: Eliminate users of of_platform_{,un}register_driver 2011-02-28 13:22:44 -07:00
spi_gpio.c spi: spi-gpio.c tests SPI_MASTER_NO_RX bit twice, but not SPI_MASTER_NO_TX 2010-10-02 21:09:08 -06:00
spi_imx.c spi/imx: select master mode for all channels 2011-02-15 15:10:11 -07:00
spi_lm70llp.c spi/bitbang: add support for SPI_MASTER_NO_{TX, RX} modes 2010-07-03 22:45:44 -06:00
spi_nuc900.c drivers/spi: Remove unnecessary semicolons 2010-11-14 20:57:20 -07:00
spi_oc_tiny.c spi: add OpenCores tiny SPI driver 2011-02-22 14:59:53 -07:00
spi_ppc4xx.c dt/spi: Eliminate users of of_platform_{,un}register_driver 2011-02-28 13:22:44 -07:00
spi_s3c24xx_fiq.h
spi_s3c24xx_fiq.S
spi_s3c24xx_gpio.c spi/bitbang: add support for SPI_MASTER_NO_{TX, RX} modes 2010-07-03 22:45:44 -06:00
spi_s3c24xx.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
spi_s3c64xx.c spi/s3c64xx: Correction for 16,32 bits bus width 2010-09-29 17:31:33 +09:00
spi_sh_msiof.c Merge commit 'v2.6.38-rc8' into spi/next 2011-03-12 01:25:53 -07:00
spi_sh_sci.c spi/bitbang: add support for SPI_MASTER_NO_{TX, RX} modes 2010-07-03 22:45:44 -06:00
spi_sh.c spi: add support for SuperH SPI 2011-02-22 14:59:54 -07:00
spi_stmp.c
spi_tegra.c spi: tegra: don't treat NULL clk as an error 2011-01-10 16:44:01 -07:00
spi_topcliff_pch.c spi/topcliff: Typo fix threhold to threshold 2010-12-31 17:49:30 -07:00
spi_txx9.c
spi.c spi / PM: Support dev_pm_ops 2010-12-25 15:32:27 +01:00
spidev.c spi/spidev: Add 32 bit compat ioctl() 2011-02-03 09:55:43 -07:00
ti-ssp-spi.c spi: add ti-ssp spi master driver 2011-03-15 08:17:22 -07:00
tle62x0.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
xilinx_spi.c driver-core: remove conditionals around devicetree pointers 2011-01-21 09:24:48 -07:00