Re: [PATCH 7/8] ide: add struct ide_port_info instances to legacy host drivers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bartlomiej Zolnierkiewicz
Date: Sunday, February 10, 2008 - 4:16 pm

On Sunday 10 February 2008, Bartlomiej Zolnierkiewicz wrote:

I went ahead and made a patch (sorry, I needed it for git pull request :).

From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Subject: [PATCH] ide: ide_init_port() bugfix

On Sunday 10 February 2008, Atsushi Nemoto wrote:

Fix regression caused by commmit c413b9b94d9a8e7548cc4b2e04b7df0439ce76fd
("ide: add struct ide_port_info instances to legacy host drivers").

Reported-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
 drivers/ide/ide-probe.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/drivers/ide/ide-probe.c
===================================================================
--- a/drivers/ide/ide-probe.c
+++ b/drivers/ide/ide-probe.c
@@ -1355,7 +1355,7 @@ static void ide_init_port(ide_hwif_t *hw
 	hwif->ultra_mask = d->udma_mask;
 
 	/* reset DMA masks only for SFF-style DMA controllers */
-	if ((d->host_flags && IDE_HFLAG_NO_DMA) == 0 && hwif->dma_base == 0)
+	if ((d->host_flags & IDE_HFLAG_NO_DMA) == 0 && hwif->dma_base == 0)
 		hwif->swdma_mask = hwif->mwdma_mask = hwif->ultra_mask = 0;
 
 	if (d->host_flags & IDE_HFLAG_RQSIZE_256)

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/8] dtc2278: fix -&gt;io_32bit handling, Bartlomiej Zolnierki ..., (Sun Jan 6, 10:02 am)
[PATCH 2/8] au1xxx-ide: fix -&gt;io_32bit handling, Bartlomiej Zolnierki ..., (Sun Jan 6, 10:02 am)
[PATCH 3/8] atiixp/cs5535/scc_pata: fix &quot;idex=ata66&quot; param ..., Bartlomiej Zolnierki ..., (Sun Jan 6, 10:02 am)
[PATCH 4/8] macide: remove drive-&gt;capacity64 quirk, Bartlomiej Zolnierki ..., (Sun Jan 6, 10:02 am)
[PATCH 5/8] ide: always set DMA masks in ide_pci_setup_ports(), Bartlomiej Zolnierki ..., (Sun Jan 6, 10:02 am)
[PATCH 6/8] ide: separate PCI specific init from generic i ..., Bartlomiej Zolnierki ..., (Sun Jan 6, 10:03 am)
[PATCH 7/8] ide: add struct ide_port_info instances to leg ..., Bartlomiej Zolnierki ..., (Sun Jan 6, 10:03 am)
[PATCH 8/8] ide: add -&gt;cable_detect method to ide_hwif_t, Bartlomiej Zolnierki ..., (Sun Jan 6, 10:03 am)
Re: [PATCH 7/8] ide: add struct ide_port_info instances to ..., Bartlomiej Zolnierki ..., (Fri Feb 1, 4:35 pm)
Re: [PATCH 7/8] ide: add struct ide_port_info instances to ..., Bartlomiej Zolnierki ..., (Sun Feb 10, 10:04 am)
Re: [PATCH 7/8] ide: add struct ide_port_info instances to ..., Bartlomiej Zolnierki ..., (Sun Feb 10, 4:16 pm)