spi: spi-msm-geni: Set the mode1 for SPI slave

Spi slave will support only mode1, so set the CPHA parameter
for spi slave.

wrongly added condition by merge conflict, hence removing it.

Change-Id: I37f9b159b01c9253de1a9e8b46e41160fa940660
Signed-off-by: Aniket Randive <arandive@codeaurora.org>
This commit is contained in:
Aniket Randive 2021-02-18 11:10:11 +05:30
commit e5dc88d6c2

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
*/
@ -359,10 +359,8 @@ 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;
}
if (mode & SPI_CPHA)
cpha |= CPHA;
/* SPI slave supports only mode 1, log unsuppoted mode and exit */
if (spi->slave && !(cpol == 0 && cpha == 1)) {