mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
Merge "spi: spi-msm-geni: Set the mode1 for SPI slave"
This commit is contained in:
commit
a833e5517a
1 changed files with 3 additions and 5 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue