aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHan Xu <han.xu@nxp.com>2023-10-10 15:15:24 -0500
committerMark Brown <broonie@kernel.org>2023-10-16 12:55:13 +0100
commitc3aa5cb264a38ae9bbcce32abca4c155af0456df (patch)
tree8d213774537d40a7ae04ed5776c0e8af568bdf4e
parent2ec8b010979036c2fe79a64adb6ecc0bd11e91d1 (diff)
downloadspi-for-6.6.tar.gz
spi: nxp-fspi: use the correct ioremap functionfor-6.6
AHB memory as MMIO should be mapped with ioremap rather than ioremap_wc, which should have been used initially just to handle unaligned access as a workaround. Fixes: d166a73503ef ("spi: fspi: dynamically alloc AHB memory") Signed-off-by: Han Xu <han.xu@nxp.com> Link: https://lore.kernel.org/r/20231010201524.2021340-1-han.xu@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/spi/spi-nxp-fspi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c
index c964f41dcc428c..168eff721ed378 100644
--- a/drivers/spi/spi-nxp-fspi.c
+++ b/drivers/spi/spi-nxp-fspi.c
@@ -759,7 +759,7 @@ static int nxp_fspi_read_ahb(struct nxp_fspi *f, const struct spi_mem_op *op)
f->memmap_len = len > NXP_FSPI_MIN_IOMAP ?
len : NXP_FSPI_MIN_IOMAP;
- f->ahb_addr = ioremap_wc(f->memmap_phy + f->memmap_start,
+ f->ahb_addr = ioremap(f->memmap_phy + f->memmap_start,
f->memmap_len);
if (!f->ahb_addr) {