Skip to content

Commit 80b444e

Browse files
Thor Thayerbroonie
authored andcommitted
spi: dw: Set GPIO_SS flag to toggle Slave Select on GPIO CS
The Designware SPI master requires slave selection before the transfer can begin [1]. This patch uses the new master flag to indicate both the GPIO CS and the internal chip select should be used. Tested On: Altera CycloneV development kit Compile tested for build errors on x86_64 (allyesconfigs) [1] DesignWare dw_apb_ssi Databook, Version 3.20a (page 39) Signed-off-by: Thor Thayer <tthayer@opensource.altera.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 6b1576a commit 80b444e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/spi/spi-dw.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ int dw_spi_add_host(struct device *dev, struct dw_spi *dws)
502502
master->handle_err = dw_spi_handle_err;
503503
master->max_speed_hz = dws->max_freq;
504504
master->dev.of_node = dev->of_node;
505+
master->flags = SPI_MASTER_GPIO_SS;
505506

506507
/* Basic HW init */
507508
spi_hw_init(dev, dws);

0 commit comments

Comments
 (0)