Loading drivers/spi/spi-geni-qcom.c +9 −3 Original line number Diff line number Diff line Loading @@ -342,9 +342,15 @@ static int setup_fifo_params(struct spi_device *spi_slv, if (mode & SPI_CPOL) cpol |= CPOL; if (!spi->slave) { if (mode & SPI_CPHA) cpha |= CPHA; /* SPI slave supports only mode 1, log unsuppoted mode and exit */ if (spi->slave && !(cpol == 0 && cpha == 1)) { GENI_SE_DBG(mas->ipc, false, mas->dev, "%s: Unsupported SPI Slave mode cpol %d cpha %d\n", __func__, cpol, cpha); return -EINVAL; } if (spi_slv->mode & SPI_CS_HIGH) Loading Loading
drivers/spi/spi-geni-qcom.c +9 −3 Original line number Diff line number Diff line Loading @@ -342,9 +342,15 @@ static int setup_fifo_params(struct spi_device *spi_slv, if (mode & SPI_CPOL) cpol |= CPOL; if (!spi->slave) { if (mode & SPI_CPHA) cpha |= CPHA; /* SPI slave supports only mode 1, log unsuppoted mode and exit */ if (spi->slave && !(cpol == 0 && cpha == 1)) { GENI_SE_DBG(mas->ipc, false, mas->dev, "%s: Unsupported SPI Slave mode cpol %d cpha %d\n", __func__, cpol, cpha); return -EINVAL; } if (spi_slv->mode & SPI_CS_HIGH) Loading