Skip to content
  • Bartlomiej Zolnierkiewicz's avatar
    ide: ide_init_port() bugfix · 42800942
    Bartlomiej Zolnierkiewicz authored
    On Sunday 10 February 2008, Atsushi Nemoto wrote:
    > On Sun, 06 Jan 2008 18:03:10 +0100, Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> wrote:
    > > +	/* reset DMA masks only for SFF-style DMA controllers */
    > > +	if ((d->host_flags && IDE_HFLAG_NO_DMA) == 0 && hwif->dma_base == 0)
    > > +		hwif->swdma_mask = hwif->mwdma_mask = hwif->ultra_mask = 0;
    > 
    > It might be too late, but "host_flags && IDE_HFLAGS_NO_DMA" seems
    > wrong for me.
    
    Fix regression caused by commmit c413b9b9
    
    
    ("ide: add struct ide_port_info instances to legacy host drivers").
    
    Reported-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
    Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    42800942