Skip to contentSkip to conversation

Ata: pata_marvell, use ioread* for iomap-ped memory

PATCH Applied [email protected] 2 participants 2 messages Oct 2, 2007 – Oct 3, 2007 libata

lore
Share & tools
lore
#0 lore raw

PATCH 4/10 Ata: pata_marvell, use ioread* for iomap-ped memory

From: Jiri Slaby <[email protected]>

pata_marvell, use ioread* for iomap-ped memory

read* on pci_iomapped memory is incorrect, fix it

---

 drivers/ata/pata_marvell.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ata/pata_marvell.c renamed from drivers/ata/pata_marvell.c~ata-pata_marvell-use-ioread-for-iomap-ped-memory +2 -2
diff -puN drivers/ata/pata_marvell.c~ata-pata_marvell-use-ioread-for-iomap-ped-memory drivers/ata/pata_marvell.c
@@ -45,10 +45,10 @@ static int marvell_pre_reset(struct ata_
 		return -ENOMEM;
 	printk("BAR5:");
 	for(i = 0; i <= 0x0F; i++)
-		printk("%02X:%02X ", i, readb(barp + i));
+		printk("%02X:%02X ", i, ioread8(barp + i));
 	printk("\n");
 
-	devices = readl(barp + 0x0C);
+	devices = ioread32(barp + 0x0C);
 	pci_iounmap(pdev, barp);
 
 	if ((pdev->device == 0x6145) && (ap->port_no == 0) &&

_