Skip to content

Commit d0dcd41

Browse files
committed
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: IDE_HFLAG_SERIALIZE_DMA bugfix
2 parents 8dcf578 + 1024c5f commit d0dcd41

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎drivers/ide/ide-probe.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,12 +1355,6 @@ static void ide_init_port(ide_hwif_t *hwif, unsigned int port,
13551355
if (hwif->chipset != ide_dtc2278 || hwif->channel == 0)
13561356
hwif->port_ops = d->port_ops;
13571357

1358-
if ((d->host_flags & IDE_HFLAG_SERIALIZE) ||
1359-
((d->host_flags & IDE_HFLAG_SERIALIZE_DMA) && hwif->dma_base)) {
1360-
if (hwif->mate)
1361-
hwif->mate->serialized = hwif->serialized = 1;
1362-
}
1363-
13641358
hwif->swdma_mask = d->swdma_mask;
13651359
hwif->mwdma_mask = d->mwdma_mask;
13661360
hwif->ultra_mask = d->udma_mask;
@@ -1382,6 +1376,12 @@ static void ide_init_port(ide_hwif_t *hwif, unsigned int port,
13821376
hwif->dma_ops = d->dma_ops;
13831377
}
13841378

1379+
if ((d->host_flags & IDE_HFLAG_SERIALIZE) ||
1380+
((d->host_flags & IDE_HFLAG_SERIALIZE_DMA) && hwif->dma_base)) {
1381+
if (hwif->mate)
1382+
hwif->mate->serialized = hwif->serialized = 1;
1383+
}
1384+
13851385
if (d->host_flags & IDE_HFLAG_RQSIZE_256)
13861386
hwif->rqsize = 256;
13871387

0 commit comments

Comments
 (0)