Skip to content

Commit 1dfc13f

Browse files
nunojsamhennerich
authored andcommitted
spi: spi-gpio: fix bug introduced by 6.6 merge
Fix the host->mode_bits mask. Missed to OR SPI_LSB_FIRST with SPI_MOSI_IDLE_LOW . Fixes: d31fa31 ("Merge tag 'xilinx-v2024.1' of https://github.com/Xilinx/linux-xlnx.git") Signed-off-by: Nuno Sa <nuno.sa@analog.com>
1 parent d6c224b commit 1dfc13f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ static int spi_gpio_probe(struct platform_device *pdev)
419419

420420
host->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 32);
421421
host->mode_bits = SPI_3WIRE | SPI_3WIRE_HIZ | SPI_CPHA | SPI_CPOL |
422-
SPI_CS_HIGH | SPI_LSB_FIRST SPI_MOSI_IDLE_LOW |
422+
SPI_CS_HIGH | SPI_LSB_FIRST | SPI_MOSI_IDLE_LOW |
423423
SPI_MOSI_IDLE_HIGH;
424424
if (!spi_gpio->mosi) {
425425
/* HW configuration without MOSI pin

0 commit comments

Comments
 (0)