mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
spi: spi-msm-geni: Propagate missing SPI Slave change from 4.14 to 5.4
Propagate following change from 4.14 to 5.4 for SPI SLAVE driver.
'commit 3c7e85615a1d64 ("spi: spi-geni-qcom: Restrict SPI
responder to transfer mode 1")'.
Change-Id: I6170a0e021cc0a09a2bc9ee26dfc504ee85bbf91
Signed-off-by: Ashish Kori <akori@codeaurora.org>
This commit is contained in:
parent
36f8c42cdc
commit
8b7a67cfa7
1 changed files with 8 additions and 0 deletions
|
|
@ -336,6 +336,14 @@ static int setup_fifo_params(struct spi_device *spi_slv,
|
|||
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)
|
||||
demux_output_inv |= BIT(spi_slv->chip_select);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue