fimc-is: Fix cs_change flags in SPI transfers
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 12 Apr 2018 15:10:10 +0000 (17:10 +0200)
committerInki Dae <inki.dae@samsung.com>
Mon, 3 Dec 2018 00:56:49 +0000 (09:56 +0900)
The cs_change flags need to be adjusted so SPI communications works
properly with the spi-s3c64xx driver.

Change-Id: I73ae345670e9ac79d8b8b576dc25078ece6167e7
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
drivers/media/platform/exynos/fimc-is/fimc-is-companion.c
drivers/media/platform/exynos/fimc-is/fimc-is-spi.c

index bb1e0e4a0ed9d0ddbdf516011989b2130498c89c..3e9575b4a006cec55842bb60c68901c530c88722 100644 (file)
@@ -69,7 +69,6 @@ static int fimc_is_comp_spi_read(struct spi_device *spi,
 
        t_c.tx_buf = req_data;
        t_c.len = 4;
-       t_c.cs_change = 1;
        t_c.bits_per_word = 32;
 
        t_r.rx_buf = buf;
index 1e201d05b60b3bf63ce5cf47774cc3668f64098e..bc552cc8c96568b8fdf5da48b893c41a863bf250 100644 (file)
@@ -36,7 +36,6 @@ int fimc_is_spi_reset_by_core(struct spi_device *spi, void *buf, u32 rx_addr, si
 
        t_c.tx_buf = req_rst;
        t_c.len = 1;
-       t_c.cs_change = 0;
 
        spi_message_init(&m);
        spi_message_add_tail(&t_c, &m);
@@ -70,12 +69,10 @@ int fimc_is_spi_read_by_core(struct spi_device *spi, void *buf, u32 rx_addr, siz
 
        t_c.tx_buf = req_data;
        t_c.len = 4;
-       t_c.cs_change = 1;
        t_c.bits_per_word = 32;
 
        t_r.rx_buf = buf;
        t_r.len = size;
-       t_r.cs_change = 0;
        t_r.bits_per_word = 32;
 
        spi_message_init(&m);
@@ -111,7 +108,6 @@ int fimc_is_spi_read_module_id(struct spi_device *spi, void *buf, u16 rx_addr, s
 
        t_c.tx_buf = req_data;
        t_c.len = 4;
-       t_c.cs_change = 1;
        t_c.bits_per_word = 32;
 
        t_r.rx_buf = buf;