Merge remote-tracking branch 'spi/fix/core' into spi-linus
This commit is contained in:
commit
26cc44f8a3
|
@ -1992,11 +1992,11 @@ int spi_setup(struct spi_device *spi)
|
||||||
if (!spi->max_speed_hz)
|
if (!spi->max_speed_hz)
|
||||||
spi->max_speed_hz = spi->master->max_speed_hz;
|
spi->max_speed_hz = spi->master->max_speed_hz;
|
||||||
|
|
||||||
spi_set_cs(spi, false);
|
|
||||||
|
|
||||||
if (spi->master->setup)
|
if (spi->master->setup)
|
||||||
status = spi->master->setup(spi);
|
status = spi->master->setup(spi);
|
||||||
|
|
||||||
|
spi_set_cs(spi, false);
|
||||||
|
|
||||||
dev_dbg(&spi->dev, "setup mode %d, %s%s%s%s%u bits/w, %u Hz max --> %d\n",
|
dev_dbg(&spi->dev, "setup mode %d, %s%s%s%s%u bits/w, %u Hz max --> %d\n",
|
||||||
(int) (spi->mode & (SPI_CPOL | SPI_CPHA)),
|
(int) (spi->mode & (SPI_CPOL | SPI_CPHA)),
|
||||||
(spi->mode & SPI_CS_HIGH) ? "cs_high, " : "",
|
(spi->mode & SPI_CS_HIGH) ? "cs_high, " : "",
|
||||||
|
|
Loading…
Reference in New Issue