diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-19 18:32:30 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-19 18:32:30 -0400 |
commit | 272a370900e5d2ae84662338397bb7b2375ff5cf (patch) | |
tree | cb3fa16d92e7a48108956948425f7ed4f69ae5e4 /drivers/ide/setup-pci.c | |
parent | 8acf28c090f0e5e049f56b27bdd7cf1fb40c6b98 (diff) |
ide: add IDE_HFLAG_RQSIZE_256 host flag
Add IDE_HFLAG_RQSIZE_256 host flag to tell ide_pci_setup_ports() to set
hwif->rqsize to 256 sectors. Convert pdc202xx_old host driver to use it.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/setup-pci.c')
-rw-r--r-- | drivers/ide/setup-pci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ide/setup-pci.c b/drivers/ide/setup-pci.c index 4fa813b96e72..a1d7efc9eaaf 100644 --- a/drivers/ide/setup-pci.c +++ b/drivers/ide/setup-pci.c | |||
@@ -582,6 +582,9 @@ void ide_pci_setup_ports(struct pci_dev *dev, ide_pci_device_t *d, int pciirq, a | |||
582 | hwif->drives[0].autotune = 1; | 582 | hwif->drives[0].autotune = 1; |
583 | hwif->drives[1].autotune = 1; | 583 | hwif->drives[1].autotune = 1; |
584 | 584 | ||
585 | if (d->host_flags & IDE_HFLAG_RQSIZE_256) | ||
586 | hwif->rqsize = 256; | ||
587 | |||
585 | if (d->init_hwif) | 588 | if (d->init_hwif) |
586 | /* Call chipset-specific routine | 589 | /* Call chipset-specific routine |
587 | * for each enabled hwif | 590 | * for each enabled hwif |