瀏覽代碼

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

* git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6:
  ide: fix early setup of hwif->host_flags
Linus Torvalds 17 年之前
父節點
當前提交
9fc3ace937
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      drivers/ide/ide-probe.c

+ 2 - 1
drivers/ide/ide-probe.c

@@ -1347,7 +1347,8 @@ static void ide_init_port(ide_hwif_t *hwif, unsigned int port,
 	    (d->host_flags & IDE_HFLAG_FORCE_LEGACY_IRQS))
 	    (d->host_flags & IDE_HFLAG_FORCE_LEGACY_IRQS))
 		hwif->irq = port ? 15 : 14;
 		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;
 	hwif->pio_mask = d->pio_mask;
 
 
 	/* ->set_pio_mode for DTC2278 is currently limited to port 0 */
 	/* ->set_pio_mode for DTC2278 is currently limited to port 0 */