diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-18 18:30:10 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-18 18:30:10 -0400 |
commit | ed67b92385a5afddc98d5ff0894b2854c4a54dac (patch) | |
tree | bb5a72cbc383ffdc759c1c12a18fc5be54df69e2 /drivers/ide/pci/pdc202xx_new.c | |
parent | 40d2dd7ef3df468814a34cd3d31486408e604468 (diff) |
ide: add IDE_HFLAG_ERROR_STOPS_FIFO host flag
Add IDE_HFLAG_ERROR_STOPS_FIFO host flag and use it instead
of hwif->err_stops_fifo. As a side-effect this change fixes
hwif->err_stops_fifo not being restored by ide_hwif_restore().
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/pdc202xx_new.c')
-rw-r--r-- | drivers/ide/pci/pdc202xx_new.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/pci/pdc202xx_new.c b/drivers/ide/pci/pdc202xx_new.c index 20dc6bc1aee5..415a2282fcbb 100644 --- a/drivers/ide/pci/pdc202xx_new.c +++ b/drivers/ide/pci/pdc202xx_new.c | |||
@@ -471,8 +471,6 @@ static void __devinit init_hwif_pdc202new(ide_hwif_t *hwif) | |||
471 | hwif->quirkproc = &pdcnew_quirkproc; | 471 | hwif->quirkproc = &pdcnew_quirkproc; |
472 | hwif->resetproc = &pdcnew_reset; | 472 | hwif->resetproc = &pdcnew_reset; |
473 | 473 | ||
474 | hwif->err_stops_fifo = 1; | ||
475 | |||
476 | hwif->drives[0].autotune = hwif->drives[1].autotune = 1; | 474 | hwif->drives[0].autotune = hwif->drives[1].autotune = 1; |
477 | 475 | ||
478 | if (hwif->dma_base == 0) | 476 | if (hwif->dma_base == 0) |
@@ -510,6 +508,7 @@ static struct pci_dev * __devinit pdc20270_get_dev2(struct pci_dev *dev) | |||
510 | .init_chipset = init_chipset_pdcnew, \ | 508 | .init_chipset = init_chipset_pdcnew, \ |
511 | .init_hwif = init_hwif_pdc202new, \ | 509 | .init_hwif = init_hwif_pdc202new, \ |
512 | .host_flags = IDE_HFLAG_POST_SET_MODE | \ | 510 | .host_flags = IDE_HFLAG_POST_SET_MODE | \ |
511 | IDE_HFLAG_ERROR_STOPS_FIFO | \ | ||
513 | IDE_HFLAG_OFF_BOARD, \ | 512 | IDE_HFLAG_OFF_BOARD, \ |
514 | .pio_mask = ATA_PIO4, \ | 513 | .pio_mask = ATA_PIO4, \ |
515 | .mwdma_mask = ATA_MWDMA2, \ | 514 | .mwdma_mask = ATA_MWDMA2, \ |