Applied "spi: spi-synquacer: Fixed build on architectures missing readsl/writesl series" to the spi tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch

   spi: spi-synquacer: Fixed build on architectures missing readsl/writesl series

has been applied to the spi tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.3

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 51c711f2c38a412aaeda43c8167fe41877cf414d Mon Sep 17 00:00:00 2001
From: Masahisa Kojima <masahisa.kojima@xxxxxxxxxx>
Date: Thu, 20 Jun 2019 17:24:26 +0900
Subject: [PATCH] spi: spi-synquacer: Fixed build on architectures missing
 readsl/writesl series

kbuild test reported that alpha and some of the architectures
are missing readsl/writesl series.
Use more portable ioread32_rep()/iowrite32_rep() series.

Fixes: b0823ee35cf9b ("spi: Add spi driver for Socionext SynQuacer platform")
Reported-by: kbuild test robot <lkp@xxxxxxxxx>
Signed-off-by: Masahisa Kojima <masahisa.kojima@xxxxxxxxxx>
Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
---
 drivers/spi/spi-synquacer.c | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/drivers/spi/spi-synquacer.c b/drivers/spi/spi-synquacer.c
index c8c8d9cdd4b3..f99abd85c50a 100644
--- a/drivers/spi/spi-synquacer.c
+++ b/drivers/spi/spi-synquacer.c
@@ -150,14 +150,16 @@ static int read_fifo(struct synquacer_spi *sspi)
 	case 8: {
 		u8 *buf = sspi->rx_buf;
 
-		readsb(sspi->regs + SYNQUACER_HSSPI_REG_RX_FIFO, buf, len);
+		ioread8_rep(sspi->regs + SYNQUACER_HSSPI_REG_RX_FIFO,
+			    buf, len);
 		sspi->rx_buf = buf + len;
 		break;
 	}
 	case 16: {
 		u16 *buf = sspi->rx_buf;
 
-		readsw(sspi->regs + SYNQUACER_HSSPI_REG_RX_FIFO, buf, len);
+		ioread16_rep(sspi->regs + SYNQUACER_HSSPI_REG_RX_FIFO,
+			     buf, len);
 		sspi->rx_buf = buf + len;
 		break;
 	}
@@ -166,7 +168,8 @@ static int read_fifo(struct synquacer_spi *sspi)
 	case 32: {
 		u32 *buf = sspi->rx_buf;
 
-		readsl(sspi->regs + SYNQUACER_HSSPI_REG_RX_FIFO, buf, len);
+		ioread32_rep(sspi->regs + SYNQUACER_HSSPI_REG_RX_FIFO,
+			     buf, len);
 		sspi->rx_buf = buf + len;
 		break;
 	}
@@ -191,14 +194,16 @@ static int write_fifo(struct synquacer_spi *sspi)
 	case 8: {
 		const u8 *buf = sspi->tx_buf;
 
-		writesb(sspi->regs + SYNQUACER_HSSPI_REG_TX_FIFO, buf, len);
+		iowrite8_rep(sspi->regs + SYNQUACER_HSSPI_REG_TX_FIFO,
+			     buf, len);
 		sspi->tx_buf = buf + len;
 		break;
 	}
 	case 16: {
 		const u16 *buf = sspi->tx_buf;
 
-		writesw(sspi->regs + SYNQUACER_HSSPI_REG_TX_FIFO, buf, len);
+		iowrite16_rep(sspi->regs + SYNQUACER_HSSPI_REG_TX_FIFO,
+			      buf, len);
 		sspi->tx_buf = buf + len;
 		break;
 	}
@@ -207,7 +212,8 @@ static int write_fifo(struct synquacer_spi *sspi)
 	case 32: {
 		const u32 *buf = sspi->tx_buf;
 
-		writesl(sspi->regs + SYNQUACER_HSSPI_REG_TX_FIFO, buf, len);
+		iowrite32_rep(sspi->regs + SYNQUACER_HSSPI_REG_TX_FIFO,
+			      buf, len);
 		sspi->tx_buf = buf + len;
 		break;
 	}
-- 
2.20.1





[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux