diff options
| author | Han Xu <[email protected]> | 2023-10-10 20:15:24 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2023-10-16 11:55:13 +0000 |
| commit | c3aa5cb264a38ae9bbcce32abca4c155af0456df (patch) | |
| tree | 8d213774537d40a7ae04ed5776c0e8af568bdf4e /drivers/spi/spi-nxp-fspi.c | |
| parent | spi: npcm-fiu: Fix UMA reads when dummy.nbytes == 0 (diff) | |
| download | kernel-c3aa5cb264a38ae9bbcce32abca4c155af0456df.tar.gz kernel-c3aa5cb264a38ae9bbcce32abca4c155af0456df.zip | |
spi: nxp-fspi: use the correct ioremap function
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/spi/spi-nxp-fspi.c')
| -rw-r--r-- | drivers/spi/spi-nxp-fspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c index c964f41dcc42..168eff721ed3 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) { |
