File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -213,12 +213,6 @@ static void davinci_spi_chipselect(struct spi_device *spi, int value)
213213 * line for the controller
214214 */
215215 if (spi -> cs_gpiod ) {
216- /*
217- * FIXME: is this code ever executed? This host does not
218- * set SPI_MASTER_GPIO_SS so this chipselect callback should
219- * not get called from the SPI core when we are using
220- * GPIOs for chip select.
221- */
222216 if (value == BITBANG_CS_ACTIVE )
223217 gpiod_set_value (spi -> cs_gpiod , 1 );
224218 else
@@ -945,7 +939,7 @@ static int davinci_spi_probe(struct platform_device *pdev)
945939 master -> bus_num = pdev -> id ;
946940 master -> num_chipselect = pdata -> num_chipselect ;
947941 master -> bits_per_word_mask = SPI_BPW_RANGE_MASK (2 , 16 );
948- master -> flags = SPI_MASTER_MUST_RX ;
942+ master -> flags = SPI_MASTER_MUST_RX | SPI_MASTER_GPIO_SS ;
949943 master -> setup = davinci_spi_setup ;
950944 master -> cleanup = davinci_spi_cleanup ;
951945 master -> can_dma = davinci_spi_can_dma ;
You can’t perform that action at this time.
0 commit comments