Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

m68k/atari - ataflop: use correct virt/phys translation for DMA buffer

With the kernel running from FastRAM instead of ST-RAM, none of ST-RAM is
mapped by mem_init, and DMA-addressable buffer must be mapped by ioremap.

Use platform specific virt/phys translation helpers for this case.

Signed-off-by: Michael Schmitz <schmitz@debian.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

authored by

Michael Schmitz and committed by
Geert Uytterhoeven
a4de73fb cf8c8781

+1 -1
+1 -1
drivers/block/ataflop.c
··· 1952 1952 goto Enomem; 1953 1953 } 1954 1954 TrackBuffer = DMABuffer + 512; 1955 - PhysDMABuffer = virt_to_phys(DMABuffer); 1955 + PhysDMABuffer = atari_stram_to_phys(DMABuffer); 1956 1956 PhysTrackBuffer = virt_to_phys(TrackBuffer); 1957 1957 BufferDrive = BufferSide = BufferTrack = -1; 1958 1958