mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-21 01:51:18 +00:00
spi: nxp-fspi: use the correct ioremap function
[ Upstream commitc3aa5cb264
] 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:d166a73503
("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
d459cb4244
commit
c07a0e2e93
1 changed files with 1 additions and 1 deletions
|
@ -685,7 +685,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 ?
|
f->memmap_len = len > NXP_FSPI_MIN_IOMAP ?
|
||||||
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);
|
f->memmap_len);
|
||||||
|
|
||||||
if (!f->ahb_addr) {
|
if (!f->ahb_addr) {
|
||||||
|
|
Loading…
Reference in a new issue