zephyr/drivers/spi
Armando Visconti bb9fe428d8 spi: spi_ll_stm32: Fix transceive() ret value in spi_slave case
In SPI slave case the transceive should return either the negative
errno code in case of error or the number of frames received.
So, now:

 1. the spi_stm32_get_err() routine already checks whether
    the SPI cell got an error and returns -EIO in that case.

 2. the transceive() routine always returns whatever the
    spi_context_wait_for_completion() has returned, which
    is either:
        a. -EIO in case of error
        b. 0 in spi_master ok case
        c. the number of frames received in spi_slave ok case

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2018-05-25 12:56:38 -05:00
..
CMakeLists.txt drivers: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for driver files. 2018-05-15 17:48:18 +03:00
Kconfig spi: Fix missing "depends on !HAS_DTS_SPI" 2018-05-10 15:43:42 -05:00
Kconfig.dw drivers/spi: Enable port 3 and 4 on DW driver 2018-04-04 19:02:35 +02:00
Kconfig.mcux_dspi spi: Refactor mcux dspi shim driver to use clock control interface 2018-05-10 15:43:42 -05:00
Kconfig.nrfx drivers: spi: Add missing periods in Kconfig.nrfx 2018-04-13 17:04:16 +02:00
Kconfig.sam0 spi: sam0: use Device Tree for configuration. 2018-03-10 11:42:25 -06:00
Kconfig.stm32 drivers/spi: Cleanup the Kconfig files 2018-04-04 19:02:35 +02:00
spi_context.h drivers/spi: Slave async calls require recv frames as successful status 2018-04-13 16:02:03 +02:00
spi_dw.c drivers: spi: fix the bug of slave selection in spi_dw 2018-05-14 17:23:03 -04:00
spi_dw.h drivers/spi: Fix tmod update on DW driver 2018-04-05 12:04:56 +03:00
spi_dw_quark_se_ss_regs.h drivers/spi: Fix typo on parameters type in DW arc regs definitions 2018-04-04 19:02:35 +02:00
spi_dw_regs.h drivers/spi: Add slave mode support to the DesignWare driver 2018-04-04 19:02:35 +02:00
spi_handlers.c spi_handlers: fix some build issues 2018-05-17 23:34:03 +03:00
spi_intel.c drivers/spi: Switch Intel driver to new SPI API 2018-04-04 19:02:35 +02:00
spi_intel.h drivers/spi: Switch Intel driver to new SPI API 2018-04-04 19:02:35 +02:00
spi_intel_regs.h drivers/spi: Switch Intel driver to new SPI API 2018-04-04 19:02:35 +02:00
spi_ll_stm32.c spi: spi_ll_stm32: Fix transceive() ret value in spi_slave case 2018-05-25 12:56:38 -05:00
spi_ll_stm32.h
spi_mcux_dspi.c spi: Refactor mcux dspi shim driver to use clock control interface 2018-05-10 15:43:42 -05:00
spi_nrfx_spi.c drivers: spi: Correct a typo in spi_nrfx_spi.c 2018-04-13 10:26:28 +02:00
spi_nrfx_spim.c drivers: spi: Add shim for nrfx SPIM driver 2018-04-12 14:19:53 -04:00
spi_nrfx_spis.c drivers: spi: Add shim for nrfx SPIS driver 2018-04-13 17:04:16 +02:00
spi_sam0.c spi: Remove SPI legacy API 2018-04-04 19:02:35 +02:00