Skip to contentSkip to conversation

IDE fixes

PATCH New Bartlomiej Zolnierkiewicz 1 participant 1 message May 1, 2008 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IDE fixes

Regression fix for some host drivers using MMIO, i.e. siimage (big thanks to Jeremy Kerr for the detailed bug analysis).

Linus, please pull from:

master.kernel.org:/pub/scm/linux/kernel/git/bart/ide-2.6.git/

to receive the following updates:

 drivers/ide/ide-probe.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Bartlomiej Zolnierkiewicz (1):

      ide: fix early setup of hwif->host_flags
drivers/ide/ide-probe.c +2 -1
index 099a0fe..591deda 100644
@@ -1347,7 +1347,8 @@ static void ide_init_port(ide_hwif_t *hwif, unsigned int port,
 	    (d->host_flags & IDE_HFLAG_FORCE_LEGACY_IRQS))
 		hwif->irq = port ? 15 : 14;
 
-	hwif->host_flags = d->host_flags;
+	/* ->host_flags may be set by ->init_iops (or even earlier...) */
+	hwif->host_flags |= d->host_flags;
 	hwif->pio_mask = d->pio_mask;
 
 	/* ->set_pio_mode for DTC2278 is currently limited to port 0 */