Skip to content

Commit c3aa5cb

Browse files
hanxu-nxpbroonie
authored andcommitted
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: d166a73 ("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>
1 parent 2ec8b01 commit c3aa5cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/spi/spi-nxp-fspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ static int nxp_fspi_read_ahb(struct nxp_fspi *f, const struct spi_mem_op *op)
759759
f->memmap_len = len > NXP_FSPI_MIN_IOMAP ?
760760
len : NXP_FSPI_MIN_IOMAP;
761761

762-
f->ahb_addr = ioremap_wc(f->memmap_phy + f->memmap_start,
762+
f->ahb_addr = ioremap(f->memmap_phy + f->memmap_start,
763763
f->memmap_len);
764764

765765
if (!f->ahb_addr) {

0 commit comments

Comments
 (0)