Commit a4de73fb authored by Michael Schmitz's avatar Michael Schmitz Committed by Geert Uytterhoeven

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: default avatarMichael Schmitz <schmitz@debian.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent cf8c8781
...@@ -1952,7 +1952,7 @@ static int __init atari_floppy_init (void) ...@@ -1952,7 +1952,7 @@ static int __init atari_floppy_init (void)
goto Enomem; goto Enomem;
} }
TrackBuffer = DMABuffer + 512; TrackBuffer = DMABuffer + 512;
PhysDMABuffer = virt_to_phys(DMABuffer); PhysDMABuffer = atari_stram_to_phys(DMABuffer);
PhysTrackBuffer = virt_to_phys(TrackBuffer); PhysTrackBuffer = virt_to_phys(TrackBuffer);
BufferDrive = BufferSide = BufferTrack = -1; BufferDrive = BufferSide = BufferTrack = -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment