[PATCH] staging: fbtft: fix unnecessary line continuations

2017-02-27 Thread Cezary Gapinski
Fix the following formatting issues: WARNING: Avoid unnecessary line continuations Signed-off-by: Cezary Gapinski <gapali...@gmail.com> --- This patch is a part of task 10 of eudyptula challenge drivers/staging/fbtft/fbtft-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 1/1] staging: fbtft: Fix Sparse warning in fb_watterott.c

2017-04-21 Thread Cezary Gapinski
Sparse reports the following in fb_watterott.c: warning: incorrect type in assignment (different base types) expected unsigned short [unsigned] [short] [usertype] got restricted __be16 [usertype] Use __be16 types for endian correctness Signed-off-by: Cezary Gapinski <gapali...@gmail.

[PATCH] staging/ks7010: Fix type assignment for struct hostif_hdr

2017-04-29 Thread Cezary Gapinski
Sparse spits out a warnings about __le16 and unsigned short assignment. Change the type of size and event members of struct hostif_hdr to __le16 and correct conversion to the proper cpu type. Signed-off-by: Cezary Gapinski <gapali...@gmail.com> --- drivers/staging/ks7010/ks7010_sdio.

[PATCH 0/5] Add support for STM32F4 SPI

2018-12-09 Thread cezary . gapinski
From: Cezary Gapinski This series of patches adds support for first generation of SPI interface for STM32F4 family. This version of driver is mostly different to STM32H7 one. Based on linux kernel I2C drivers for STM32 where drivers were splited into STM32F4 and STM32F7 family the same approach

[PATCH 5/5] spi: stm32: add description about STM32F4 bindings

2018-12-09 Thread cezary . gapinski
From: Cezary Gapinski Add description that STM32F4 can be used in compatible property. Master Inter-Data Idleness optional property cannot be used in STM32F4. Signed-off-by: Cezary Gapinski --- Documentation/devicetree/bindings/spi/spi-stm32.txt | 9 ++--- 1 file changed, 6 insertions

[PATCH 1/5] spi: stm32: rename STM32 SPI registers and functions to STM32H7

2018-12-09 Thread cezary . gapinski
From: Cezary Gapinski Rename STM32 SPI registers and functions to be related to STM32H7 SPI driver and not STM32 generally. Signed-off-by: Cezary Gapinski --- drivers/spi/spi-stm32.c | 662 +--- 1 file changed, 340 insertions(+), 322 deletions

[PATCH 2/5] spi: stm32: rename spi-stm32 to spi-stm32h7

2018-12-09 Thread cezary . gapinski
From: Cezary Gapinski Rename spi-stm32 driver to be related to STM32H7 type. Signed-off-by: Cezary Gapinski --- drivers/spi/Kconfig |8 +- drivers/spi/Makefile |2 +- drivers/spi/spi-stm32.c | 1340 - drivers/spi/spi-stm32h7.c

[PATCH 4/5] ARM: dts: stm32: add SPI support on STM32F429 SoC

2018-12-09 Thread cezary . gapinski
From: Cezary Gapinski This patch adds all SPI instances of the STM32F429 SoC. Signed-off-by: Cezary Gapinski --- arch/arm/boot/dts/stm32f429.dtsi | 60 1 file changed, 60 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts

[PATCH 3/5] spi: stm32: add driver for STM32F4 controller

2018-12-09 Thread cezary . gapinski
From: Cezary Gapinski The STM32F4 Serial Peripheral Interface (SPI) can be used to communicate with external devices while using the specific synchronous protocol. This version supports full-duplex communication with 8 or 16-bit per word. DMA capability is optionally supported when RX and TX

[PATCH v2 03/14] spi: stm32: fix DMA configuration with only one channel

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski When SPI driver is configured to work only with TX or RX DMA channel then dmaengine functions can dereferene NULL pointer. Running full-duplex mode when when only RX or TX DMA channel is available can cause overrun condition or incorrect writing to transmit buffer so

[PATCH v2 02/14] spi: stm32: use NULL pointer instead of plain integer

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Patch fixes sparse warning: Using plain integer as NULL pointer. Replaces second argument of function devm_clk_get from 0 to NULL. Signed-off-by: Cezary Gapinski --- drivers/spi/spi-stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi

[PATCH v2 00/14] Add support for STM32F4 SPI

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski This series of patches adds support for first generation of SPI interface for STM32F4 family. This version of driver is mostly different to STM32H7 one. Based on linux kernel I2C drivers for STM32 where drivers were splited into STM32F4 and STM32F7 family the same approach

[PATCH v2 04/14] spi: fix typo in SPI_STM32 help text

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Fix typo from STMicroelectonics to STMicroelectronics. Signed-off-by: Cezary Gapinski --- drivers/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 9f89cb1..ceb6b7e 100644 --- a/drivers/spi

[PATCH v2 12/14] spi: stm32: add support for STM32F4

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Add routines, registers & bitfield definition. Also baud rate divisor definitions for STM32F4 SPI. This version supports full-duplex, simplex TX and half-duplex TX communication with 8 or 16-bit per word. DMA capability is optionally supported for transfer longer tha

[PATCH v2 10/14] spi: stm32: add start dma transfer function

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Add transfer_one_dma_start function to be more generic for other stm32 SPI family drivers. Signed-off-by: Cezary Gapinski --- drivers/spi/spi-stm32.c | 27 ++- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/drivers/spi/spi-stm32.c

[PATCH v2 08/14] spi: stm32: rename interrupt function

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Interrupt function is used as a thread so rename it to express meaning directly by more clear function name. Signed-off-by: Cezary Gapinski --- drivers/spi/spi-stm32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-stm32.c b

[PATCH v2 11/14] spi: stm32: introduce compatible data cfg

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Prepare support for STM32F4 spi variant by introducing compatible configuration data. Move STM32H7 specific stuff to compatible data structure: - registers & bit fields - routines to control driver - baud rate divisor definitions - fifo availability - split

[PATCH v2 14/14] spi: stm32: add description about STM32F4 bindings

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Add description that STM32F4 can be used in compatible property. Master Inter-Data Idleness optional property cannot be used in STM32F4. Signed-off-by: Cezary Gapinski --- Documentation/devicetree/bindings/spi/spi-stm32.txt | 9 ++--- 1 file changed, 6 insertions

[PATCH v2 07/14] spi: stm32: rename STM32 SPI registers to STM32H7

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Rename STM32 SPI registers to be related to STM32H7 SPI driver and not STM32 generally. Signed-off-by: Cezary Gapinski --- drivers/spi/spi-stm32.c | 381 +--- 1 file changed, 199 insertions(+), 182 deletions(-) diff --git

[PATCH v2 13/14] ARM: dts: stm32: add SPI support on STM32F429 SoC

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski This patch adds all SPI instances of the STM32F429 SoC. Signed-off-by: Cezary Gapinski --- arch/arm/boot/dts/stm32f429.dtsi | 60 1 file changed, 60 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts

[PATCH v2 06/14] spi: stm32: remove SPI LOOP mode

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski This driver does not support SPI LOOP mode by configuration in registers. Signed-off-by: Cezary Gapinski --- drivers/spi/spi-stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c index f7056b7

[PATCH v2 09/14] spi: stm32: split transfer one setup function

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Split stm32_spi_transfer_one_setup function into smaller chunks to be more generic for other stm32 SPI family drivers. Signed-off-by: Cezary Gapinski --- drivers/spi/spi-stm32.c | 270 ++-- 1 file changed, 192 insertions(+), 78

[PATCH v2 05/14] spi: stm32: use explicit CPOL and CPHA mode bits

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Driver supports SPI mode 0 to 3 not only the mode 3. Use SPI_CPOL and SPI_CPHA indicates that these bits can be changed to obtain modes 0 - 3. Signed-off-by: Cezary Gapinski --- drivers/spi/spi-stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 01/14] spi: stm32: switch to SPDX identifier

2018-12-24 Thread cezary . gapinski
From: Cezary Gapinski Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Cezary Gapinski --- drivers/spi/spi-stm32.c | 27 +++ 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/drivers/spi/spi-stm32.c b/drivers

[PATCH 1/1] staging: fbtft: Fix Sparse warning in fb_watterott.c

2017-04-21 Thread Cezary Gapinski
Sparse reports the following in fb_watterott.c: warning: incorrect type in assignment (different base types) expected unsigned short [unsigned] [short] [usertype] got restricted __be16 [usertype] Use __be16 types for endian correctness Signed-off-by: Cezary Gapinski --- drivers/staging

[PATCH] staging: fbtft: fix unnecessary line continuations

2017-02-27 Thread Cezary Gapinski
Fix the following formatting issues: WARNING: Avoid unnecessary line continuations Signed-off-by: Cezary Gapinski --- This patch is a part of task 10 of eudyptula challenge drivers/staging/fbtft/fbtft-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging

[PATCH] staging/ks7010: Fix type assignment for struct hostif_hdr

2017-04-29 Thread Cezary Gapinski
Sparse spits out a warnings about __le16 and unsigned short assignment. Change the type of size and event members of struct hostif_hdr to __le16 and correct conversion to the proper cpu type. Signed-off-by: Cezary Gapinski --- drivers/staging/ks7010/ks7010_sdio.c | 10 ++ drivers