diff options
author | Naga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com> | 2019-04-22 03:26:49 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-01 21:37:57 -0400 |
commit | ba3ce8cb3808cad0f9b8303fad4bd1c887834c82 (patch) | |
tree | 54dbf149bde2a55d5160d51cc88fb5f8fc9fb1b9 /drivers/spi | |
parent | 4b562de4e227dbc2267c367b0a1ec83051c364f6 (diff) |
spi: spi-mem: zynq-qspi: Fix build error on architectures missing readsl/writesl
Alpha and some of the architectures are missing readsl/writesl functions.
so the zynq-qspi driver won't be able to build on these arches. hence use
ioread32_rep()/iowrite32_rep() instead of readsl()/writesl().
Signed-off-by: Naga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com>
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-zynq-qspi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/spi/spi-zynq-qspi.c b/drivers/spi/spi-zynq-qspi.c index 8079d0062d03..c6bee67decb5 100644 --- a/drivers/spi/spi-zynq-qspi.c +++ b/drivers/spi/spi-zynq-qspi.c | |||
@@ -407,8 +407,8 @@ static void zynq_qspi_write_op(struct zynq_qspi *xqspi, int txcount, | |||
407 | count = txcount; | 407 | count = txcount; |
408 | 408 | ||
409 | if (xqspi->txbuf) { | 409 | if (xqspi->txbuf) { |
410 | writesl(xqspi->regs + ZYNQ_QSPI_TXD_00_00_OFFSET, | 410 | iowrite32_rep(xqspi->regs + ZYNQ_QSPI_TXD_00_00_OFFSET, |
411 | xqspi->txbuf, count); | 411 | xqspi->txbuf, count); |
412 | xqspi->txbuf += count * 4; | 412 | xqspi->txbuf += count * 4; |
413 | } else { | 413 | } else { |
414 | for (k = 0; k < count; k++) | 414 | for (k = 0; k < count; k++) |
@@ -433,8 +433,8 @@ static void zynq_qspi_read_op(struct zynq_qspi *xqspi, int rxcount) | |||
433 | if (count > rxcount) | 433 | if (count > rxcount) |
434 | count = rxcount; | 434 | count = rxcount; |
435 | if (xqspi->rxbuf) { | 435 | if (xqspi->rxbuf) { |
436 | readsl(xqspi->regs + ZYNQ_QSPI_RXD_OFFSET, | 436 | ioread32_rep(xqspi->regs + ZYNQ_QSPI_RXD_OFFSET, |
437 | xqspi->rxbuf, count); | 437 | xqspi->rxbuf, count); |
438 | xqspi->rxbuf += count * 4; | 438 | xqspi->rxbuf += count * 4; |
439 | } else { | 439 | } else { |
440 | for (k = 0; k < count; k++) | 440 | for (k = 0; k < count; k++) |