diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-07-19 19:11:58 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-07-19 19:11:58 -0400 |
commit | 6a824c92db4d606c324272c4eed366fb71672440 (patch) | |
tree | 72b398062fd582b85507b665120f0a5315548eaf /drivers/ide/ide.c | |
parent | 2134758d2a5429325cee4d4ce8959af5314eeba1 (diff) |
ide: remove ide_find_best_pio_mode()
* Add ->host_flags to ide_hwif_t to store ide_pci_device_t.host_flags,
assign it in setup-pci.c:ide_pci_setup_ports().
* Add IDE_HFLAG_PIO_NO_{BLACKLIST,DOWNGRADE} to ide_pci_device_t.host_flags
and teach ide_get_best_pio_mode() about them. Also remove needless
!drive->id check while at it (drive->id is always present).
* Convert amd74xx, via82cxxx and ide-timing.h to use ide_get_best_pio_mode()
and then remove no longer needed ide_find_best_pio_mode().
There should be no functionality changes caused by this patch.
Acked-by: Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r-- | drivers/ide/ide.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index 077fb674a96d..b442b341d52e 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c | |||
@@ -455,6 +455,8 @@ static void ide_hwif_restore(ide_hwif_t *hwif, ide_hwif_t *tmp_hwif) | |||
455 | hwif->straight8 = tmp_hwif->straight8; | 455 | hwif->straight8 = tmp_hwif->straight8; |
456 | hwif->bus_state = tmp_hwif->bus_state; | 456 | hwif->bus_state = tmp_hwif->bus_state; |
457 | 457 | ||
458 | hwif->host_flags = tmp_hwif->host_flags; | ||
459 | |||
458 | hwif->atapi_dma = tmp_hwif->atapi_dma; | 460 | hwif->atapi_dma = tmp_hwif->atapi_dma; |
459 | hwif->ultra_mask = tmp_hwif->ultra_mask; | 461 | hwif->ultra_mask = tmp_hwif->ultra_mask; |
460 | hwif->mwdma_mask = tmp_hwif->mwdma_mask; | 462 | hwif->mwdma_mask = tmp_hwif->mwdma_mask; |