Skip to content

Commit ce8e60f

Browse files
Shreyas Joshibroonie
authored andcommitted
spi: spi-cadence: add support for chip select high
The spi cadence driver should support spi-cs-high in mode bits so that the peripherals that needs the chip select to be high active can use it. Add the SPI-CS-HIGH flag in the supported mode bits. Signed-off-by: Shreyas Joshi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 2abbae5 commit ce8e60f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-cadence.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ static int cdns_spi_probe(struct platform_device *pdev)
556556
master->unprepare_transfer_hardware = cdns_unprepare_transfer_hardware;
557557
master->set_cs = cdns_spi_chipselect;
558558
master->auto_runtime_pm = true;
559-
master->mode_bits = SPI_CPOL | SPI_CPHA;
559+
master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH;
560560

561561
/* Set to default valid value */
562562
master->max_speed_hz = clk_get_rate(xspi->ref_clk) / 4;

0 commit comments

Comments
 (0)