diff options
| author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:18 -0400 |
|---|---|---|
| committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:18 -0400 |
| commit | 70775e9c627d7094189b96d73fffced6dab30b30 (patch) | |
| tree | 6fc5e8a9ed54aad07d9daadb17ceb795540eceb5 | |
| parent | 211176ccebd2fac1af198eb14308f6cbd7d844e1 (diff) | |
ide: move ->rqsize init from init_irq() to ide_init_port()
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
| -rw-r--r-- | drivers/ide/ide-probe.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index 974067043fba..b0510b033d78 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c | |||
| @@ -861,14 +861,6 @@ static int init_irq (ide_hwif_t *hwif) | |||
| 861 | if (request_irq(hwif->irq, irq_handler, sa, hwif->name, hwif)) | 861 | if (request_irq(hwif->irq, irq_handler, sa, hwif->name, hwif)) |
| 862 | goto out_up; | 862 | goto out_up; |
| 863 | 863 | ||
| 864 | if (!hwif->rqsize) { | ||
| 865 | if ((hwif->host_flags & IDE_HFLAG_NO_LBA48) || | ||
| 866 | (hwif->host_flags & IDE_HFLAG_NO_LBA48_DMA)) | ||
| 867 | hwif->rqsize = 256; | ||
| 868 | else | ||
| 869 | hwif->rqsize = 65536; | ||
| 870 | } | ||
| 871 | |||
| 872 | #if !defined(__mc68000__) | 864 | #if !defined(__mc68000__) |
| 873 | printk(KERN_INFO "%s at 0x%03lx-0x%03lx,0x%03lx on irq %d", hwif->name, | 865 | printk(KERN_INFO "%s at 0x%03lx-0x%03lx,0x%03lx on irq %d", hwif->name, |
| 874 | io_ports->data_addr, io_ports->status_addr, | 866 | io_ports->data_addr, io_ports->status_addr, |
| @@ -1114,6 +1106,13 @@ static void ide_init_port(ide_hwif_t *hwif, unsigned int port, | |||
| 1114 | 1106 | ||
| 1115 | if (d->max_sectors) | 1107 | if (d->max_sectors) |
| 1116 | hwif->rqsize = d->max_sectors; | 1108 | hwif->rqsize = d->max_sectors; |
| 1109 | else { | ||
| 1110 | if ((hwif->host_flags & IDE_HFLAG_NO_LBA48) || | ||
| 1111 | (hwif->host_flags & IDE_HFLAG_NO_LBA48_DMA)) | ||
| 1112 | hwif->rqsize = 256; | ||
| 1113 | else | ||
| 1114 | hwif->rqsize = 65536; | ||
| 1115 | } | ||
| 1117 | 1116 | ||
| 1118 | /* call chipset specific routine for each enabled port */ | 1117 | /* call chipset specific routine for each enabled port */ |
| 1119 | if (d->init_hwif) | 1118 | if (d->init_hwif) |
