Skip to content

Commit 464a744

Browse files
committed
spi: dw: Add SPI_NO_CS to the controller mode_list
If using gpiod CS lines it must be possible to run in no-chip-select mode, so declare SPI_NO_CS in the mode_list field for the controller. Signed-off-by: Phil Elwell <[email protected]>
1 parent a4a4d7f commit 464a744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-dw-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ int dw_spi_add_host(struct device *dev, struct dw_spi *dws)
997997
dw_spi_init_mem_ops(dws);
998998

999999
host->use_gpio_descriptors = true;
1000-
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP;
1000+
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_NO_CS;
10011001
if (dws->caps & DW_SPI_CAP_DFS32)
10021002
host->bits_per_word_mask = SPI_BPW_RANGE_MASK(4, 32);
10031003
else

0 commit comments

Comments
 (0)