Commit 4edbed7b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] m68k: Macintosh IDE fixes

From: Geert Uytterhoeven <geert@linux-m68k.org>

Mac IDE: Make sure the core IDE driver doesn't try to request the MMIO
ports a second time, since this will fail.
parent d8059782
...@@ -94,6 +94,7 @@ static void macide_mediabay_interrupt(int irq, void *dev_id, struct pt_regs *reg ...@@ -94,6 +94,7 @@ static void macide_mediabay_interrupt(int irq, void *dev_id, struct pt_regs *reg
void macide_init(void) void macide_init(void)
{ {
hw_regs_t hw; hw_regs_t hw;
ide_hwif_t *hwif;
int index = -1; int index = -1;
switch (macintosh_config->ide_type) { switch (macintosh_config->ide_type) {
...@@ -102,21 +103,21 @@ void macide_init(void) ...@@ -102,21 +103,21 @@ void macide_init(void)
0, 0, macide_ack_intr, 0, 0, macide_ack_intr,
// quadra_ide_iops, // quadra_ide_iops,
IRQ_NUBUS_F); IRQ_NUBUS_F);
index = ide_register_hw(&hw, NULL); index = ide_register_hw(&hw, &hwif);
break; break;
case MAC_IDE_PB: case MAC_IDE_PB:
ide_setup_ports(&hw, IDE_BASE, macide_offsets, ide_setup_ports(&hw, IDE_BASE, macide_offsets,
0, 0, macide_ack_intr, 0, 0, macide_ack_intr,
// macide_pb_iops, // macide_pb_iops,
IRQ_NUBUS_C); IRQ_NUBUS_C);
index = ide_register_hw(&hw, NULL); index = ide_register_hw(&hw, &hwif);
break; break;
case MAC_IDE_BABOON: case MAC_IDE_BABOON:
ide_setup_ports(&hw, BABOON_BASE, macide_offsets, ide_setup_ports(&hw, BABOON_BASE, macide_offsets,
0, 0, NULL, 0, 0, NULL,
// macide_baboon_iops, // macide_baboon_iops,
IRQ_BABOON_1); IRQ_BABOON_1);
index = ide_register_hw(&hw, NULL); index = ide_register_hw(&hw, &hwif);
if (index == -1) break; if (index == -1) break;
if (macintosh_config->ident == MAC_MODEL_PB190) { if (macintosh_config->ident == MAC_MODEL_PB190) {
...@@ -141,6 +142,7 @@ void macide_init(void) ...@@ -141,6 +142,7 @@ void macide_init(void)
} }
if (index != -1) { if (index != -1) {
hwif->mmio = 2;
if (macintosh_config->ide_type == MAC_IDE_QUADRA) if (macintosh_config->ide_type == MAC_IDE_QUADRA)
printk(KERN_INFO "ide%d: Macintosh Quadra IDE interface\n", index); printk(KERN_INFO "ide%d: Macintosh Quadra IDE interface\n", index);
else if (macintosh_config->ide_type == MAC_IDE_PB) else if (macintosh_config->ide_type == MAC_IDE_PB)
......
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