linux_dsm_epyc7002/drivers/spi
Jan Nikitenko 2cfb8ce8c8 spi_bitbang: short transfer status fix
SPI controller drivers return number of bytes actually transfered from
bitbang->txrx_bufs() method.  This updates handling of short transfers (where
the transfer size is less than requested):

 - Even zero byte short transfers should report errors;
 - Include short transfers in the total of transferred bytes;
 - Use EREMOTEIO (like USB) not EMSGSIZE to report short transfers

Short transfers don't normally mean invalid message sizes, but if the
underlying controller driver needs to use EMSGSIZE it can still do so.

[db: fix two more minor issues]
Signed-off-by: Jan Nikitenko <jan.nikitenko@gmail.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>
2008-03-13 13:11:43 -07:00
..
at25.c spi: at25 driver is for EEPROM not FLASH 2007-12-05 09:21:18 -08:00
atmel_spi.c atmel_spi: fix clock polarity 2008-02-23 17:12:14 -08:00
atmel_spi.h [PATCH] SPI: atmel_spi driver 2007-02-14 08:09:53 -08:00
au1550_spi.c au1550_spi: fix prototype of irq handler 2008-03-13 13:11:43 -07:00
Kconfig spi: omap2_mcspi handles omap3 too 2008-02-06 10:41:11 -08:00
Makefile spi: SuperH SPI using SCI 2008-02-06 10:41:11 -08:00
mpc52xx_psc_spi.c powerpc: mpc5200: fix build error on mpc52xx_psc_spi device driver 2008-03-04 16:35:12 -08:00
omap2_mcspi.c spi: omap2_mcspi handles omap3 too 2008-02-06 10:41:11 -08:00
omap_uwire.c SPI driver runtime footprint shrinkage 2007-10-16 09:43:09 -07:00
pxa2xx_spi.c spi: pxa2xx_spi clock polarity fix 2008-02-23 17:12:14 -08:00
spi_bfin5xx.c spi_bfin: headers are not for changelogs 2008-02-06 10:41:11 -08:00
spi_bitbang.c spi_bitbang: short transfer status fix 2008-03-13 13:11:43 -07:00
spi_butterfly.c minor spi_butterfly cleanup 2007-05-08 11:15:15 -07:00
spi_imx.c spi: remove more dev->power.power_state usage 2008-02-06 10:41:11 -08:00
spi_lm70llp.c spi doesn't need class_device 2007-10-16 09:43:10 -07:00
spi_mpc83xx.c spi_mpc83xx: use brg-frequency for SPI in QE 2008-01-28 08:32:57 -06:00
spi_s3c24xx_gpio.c spi: s3c drivers shouldn't care about spi_board_info 2008-02-06 10:41:11 -08:00
spi_s3c24xx.c spi: s3c drivers shouldn't care about spi_board_info 2008-02-06 10:41:11 -08:00
spi_sh_sci.c spi: SuperH SPI using SCI 2008-02-06 10:41:11 -08:00
spi_txx9.c spi: fix error paths on txx9spi_probe 2007-11-14 18:45:39 -08:00
spi.c spi core: stop updating dev->power.power_state 2008-02-06 10:41:10 -08:00
spidev.c fix abuses of ptrdiff_t 2007-10-29 07:41:33 -07:00
tle62x0.c tle62x0 driver stops ignoring read errors 2007-11-14 18:45:42 -08:00
xilinx_spi.c SPI driver hotplug/coldplug fixes 2007-08-31 01:42:22 -07:00