Skip to contentSkip to conversation

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

PATCH New Michael Schmitz 1 participant 2 messages Mar 23, 2014

Subsystems (3)
lore
Share & tools
lore

Michael Schmitz

author maintainer
#0 lore raw

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

---
 drivers/block/ataflop.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/block/ataflop.c +1 -1
index 0e30c6e..f54655a 100644
@@ -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;
 
Signature · 1 line
1.7.0.4
author maintainer
#1 lore raw

PATCH 2/2 m68k/atari - atari_scsi: use correct virt/phys translation for DMA buffer

---
 drivers/scsi/atari_scsi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/atari_scsi.c +1 -1
index 296c936..a8d721f 100644
@@ -639,7 +639,7 @@ static int __init atari_scsi_detect(struct scsi_host_template *host)
 					"double buffer\n");
 			return 0;
 		}
-		atari_dma_phys_buffer = virt_to_phys(atari_dma_buffer);
+		atari_dma_phys_buffer = atari_stram_to_phys(atari_dma_buffer);
 		atari_dma_orig_addr = 0;
 	}
 #endif
Signature · 1 line
1.7.0.4