diff options
author | Mark Brown <broonie@kernel.org> | 2019-08-23 14:00:22 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-08-23 14:00:22 +0300 |
commit | 795227660d05e109b57896e2df1de0f012c64662 (patch) | |
tree | 063c92088ee4c90b006a3b7e5c8f7837280694f7 /drivers/spi/spi-bcm-qspi.c | |
parent | be28f76b7e8ffaf04690e30fd17683d8afea1fd9 (diff) | |
parent | d41f36a6464a85c06ad920703d878e4491d2c023 (diff) | |
download | linux-795227660d05e109b57896e2df1de0f012c64662.tar.xz |
Merge branch 'spi-5.3' into spi-5.4
Diffstat (limited to 'drivers/spi/spi-bcm-qspi.c')
-rw-r--r-- | drivers/spi/spi-bcm-qspi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-bcm-qspi.c b/drivers/spi/spi-bcm-qspi.c index 902bdbfedea8..0dbfd2496ab8 100644 --- a/drivers/spi/spi-bcm-qspi.c +++ b/drivers/spi/spi-bcm-qspi.c @@ -343,7 +343,7 @@ static int bcm_qspi_bspi_set_flex_mode(struct bcm_qspi *qspi, { int bpc = 0, bpp = 0; u8 command = op->cmd.opcode; - int width = op->cmd.buswidth ? op->cmd.buswidth : SPI_NBITS_SINGLE; + int width = op->data.buswidth ? op->data.buswidth : SPI_NBITS_SINGLE; int addrlen = op->addr.nbytes; int flex_mode = 1; @@ -981,7 +981,7 @@ static int bcm_qspi_exec_mem_op(struct spi_mem *mem, if (mspi_read) return bcm_qspi_mspi_exec_mem_op(spi, op); - ret = bcm_qspi_bspi_set_mode(qspi, op, -1); + ret = bcm_qspi_bspi_set_mode(qspi, op, 0); if (!ret) ret = bcm_qspi_bspi_exec_mem_op(spi, op); |