aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-stm32.c
Commit message (Collapse)AuthorAgeFilesLines
...
* spi: stm32: use normal conditional statements instead of ternary operatorAmelie Delaunay2017-06-281-14/+30
| | | | | | | | | This patch replace ternary operator use by normal condition statements to ease code reading. It also removes redundant !!. Signed-off-by: Amelie Delaunay <[email protected]> Signed-off-by: Mark Brown <[email protected]>
* spi: stm32: replace st, spi-midi with st, spi-midi-ns to fit bindingsAmelie Delaunay2017-06-281-1/+1
| | | | | | | | This patch fixes the optional dt property used to set master inter-data idleness. Signed-off-by: Amelie Delaunay <[email protected]> Signed-off-by: Mark Brown <[email protected]>
* spi: stm32: fix compatible to fit with new bindingsAmelie Delaunay2017-06-281-1/+1
| | | | | | | | This patch updates of_device_id compatible string to fit with new bindings. Signed-off-by: Amelie Delaunay <[email protected]> Signed-off-by: Mark Brown <[email protected]>
* spi: stm32: fix error check on mbr being -veColin Ian King2017-06-231-2/+2
| | | | | | | | | | | The error check of mbr < 0 is always false because mbr is a u32. Make mbt an int so that a -ve error return from stm32_spi_prepare_mbr can be detected. Detected by CoverityScan, CID#1446586 ("Unsigned compared against 0") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Mark Brown <[email protected]>
* spi: add driver for STM32 SPI controllerAmelie Delaunay2017-06-211-0/+1266
The STM32 Serial Peripheral Interface (SPI) can be used to communicate with external devices while using the specific synchronous protocol. It supports a half-duplex, full-duplex and simplex synchronous, serial communication with external devices with 4-bit to 16/32-bit per word. It has two 8x/16x 8-bit embedded Rx and TxFIFOs with DMA capability. It can operate in master or slave mode. Signed-off-by: Amelie Delaunay <[email protected]> Signed-off-by: Mark Brown <[email protected]>