Skip to content

Commit

Permalink
gayle: set IDE_HFLAG_SERIALIZE explictly
Browse files Browse the repository at this point in the history
If IDE doubler is used ports need to be serialized.  Currently
init_irq() handles it fine but lets also set IDE_HFLAG_SERIALIZE
host flag explicitly in preparation for future changes.

Also convert the driver to use struct ide_port_info while at it.

Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Dec 29, 2008
1 parent 6b5cde3 commit a4cd1a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/ide/gayle.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ static void __init gayle_setup_ports(hw_regs_t *hw, unsigned long base,
hw->chipset = ide_generic;
}

static const struct ide_port_info gayle_port_info = {
.host_flags = IDE_HFLAG_SERIALIZE | IDE_HFLAG_NO_DMA,
};

/*
* Probe for a Gayle IDE interface (and optionally for an IDE doubler)
*/
Expand Down Expand Up @@ -178,7 +182,7 @@ static int __init gayle_init(void)
hws[i] = &hw[i];
}

rc = ide_host_add(NULL, hws, NULL);
rc = ide_host_add(&gayle_port_info, hws, NULL);
if (rc)
release_mem_region(res_start, res_n);

Expand Down

0 comments on commit a4cd1a3

Please sign in to comment.