* [PATCH v3 3/4] m68k/atari - ataflop: use correct virt/phys translation for DMA buffer
[not found] <1396253168-25601-1-git-send-email-schmitz@debian.org>
@ 2014-03-31 8:06 ` Michael Schmitz
0 siblings, 0 replies; only message in thread
From: Michael Schmitz @ 2014-03-31 8:06 UTC (permalink / raw)
To: linux-m68k; +Cc: geert, debian-68k, Michael Schmitz, linux-kernel
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
---
drivers/block/ataflop.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/block/ataflop.c b/drivers/block/ataflop.c
index 0e30c6e..f54655a 100644
--- a/drivers/block/ataflop.c
+++ b/drivers/block/ataflop.c
@@ -1952,7 +1952,7 @@ static int __init atari_floppy_init (void)
goto Enomem;
}
TrackBuffer = DMABuffer + 512;
- PhysDMABuffer = virt_to_phys(DMABuffer);
+ PhysDMABuffer = atari_stram_to_phys(DMABuffer);
PhysTrackBuffer = virt_to_phys(TrackBuffer);
BufferDrive = BufferSide = BufferTrack = -1;
--
1.7.0.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-31 8:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1396253168-25601-1-git-send-email-schmitz@debian.org>
2014-03-31 8:06 ` [PATCH v3 3/4] m68k/atari - ataflop: use correct virt/phys translation for DMA buffer Michael Schmitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®