spi: xtensa-xtfpga: fix register endianness
Subsystems (3)
Max Filippov
maintainerPATCH 1/1 spi: xtensa-xtfpga: fix register endianness
XTFPGA SPI controller has native endian registers.
Fix register acessors so that they work in big-endian configurations.
--- drivers/spi/spi-xtensa-xtfpga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-xtensa-xtfpga.c +2 -2
@@ -34,13 +34,13 @@ struct xtfpga_spi {static inline void xtfpga_spi_write32 (const struct xtfpga_spi *spi,unsigned addr,u32 val) { -iowrite32 (val, spi->regs + addr); +__raw_writel (val, spi->regs + addr); }static inline unsigned int xtfpga_spi_read32 (const struct xtfpga_spi *spi,unsigned addr) { -return ioread32 (spi->regs + addr); +return __raw_readl (spi->regs + addr); }static inline void xtfpga_spi_wait_busy (struct xtfpga_spi *xspi)
Signature · 6 lines
1.8.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1442921523-1265-1-git-send-email-jcmvbkbc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Applied "spi: xtensa-xtfpga: fix register endianness" to the spi tree
The patch
spi: xtensa-xtfpga: fix register endianness
has been applied to the spi tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git
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
Quoted 1 line
From
b0b4855099e301c8603ea37da9a0103a96c2e0b1Mon Sep 17 00:00:00 2001
From: Max Filippov <[email protected]>
Date: Tue, 22 Sep 2015 14:32:03 +0300
Subject: [PATCH] spi: xtensa-xtfpga: fix register endianness
XTFPGA SPI controller has native endian registers.
Fix register acessors so that they work in big-endian configurations.
--- drivers/spi/spi-xtensa-xtfpga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-xtensa-xtfpga.c +2 -2
@@ -34,13 +34,13 @@ struct xtfpga_spi {static inline void xtfpga_spi_write32 (const struct xtfpga_spi *spi,unsigned addr,u32 val) { -iowrite32 (val, spi->regs + addr); +__raw_writel (val, spi->regs + addr); }static inline unsigned int xtfpga_spi_read32 (const struct xtfpga_spi *spi,unsigned addr) { -return ioread32 (spi->regs + addr); +return __raw_readl (spi->regs + addr); }static inline void xtfpga_spi_wait_busy (struct xtfpga_spi *xspi)
Signature · 6 lines
2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html