diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 19:31:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 19:31:22 -0400 |
commit | 64fb98fc40738ae1a98bcea9ca3145b89fb71524 (patch) | |
tree | 24130f9c56b04638e91969d216db199652470a17 /drivers/ide/ppc/mpc8xx.c | |
parent | 5f47c7eac65a45e33d7fe390effe75ec5c74f8bf (diff) | |
parent | 89636af25d75d8672aea05d258be357d0dc4bd70 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/bart/ide-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/bart/ide-2.6: (23 commits)
ide: add support for SCSI ioctls to ide-floppy
ide: remove stale changelog from setup-pci.c
ide: remove stale changelog/comments/TODO from ide.c
ide-cris: handle PIO auto-tuning in tune_cris_ide()
ide: add PIO masks
ide: remove ide_find_best_pio_mode()
ide: drop "PIO data" argument from ide_get_best_pio_mode()
ide: ide_find_best_pio_mode() fixes (take 2)
ide: add ide_pio_cycle_time() helper (take 2)
sc1200: remove stale Power Management code
ide: ide_start_power_step() fix WRT disabling DMA
serverworks: fix DMA
serverworks: always tune PIO
ide: add ide_pci_device_t.host_flags (take 2)
ide: add ide_dev_has_iordy() helper (take 4)
ide: make ide_get_best_pio_mode() print info if overriding PIO mode
siimage: PIO mode setup fixes (take 2)
atiixp: PIO mode setup fixes
ide: Stop mapping ROMs
IDE: Remove references to dead ETRAX-related variables.
...
Diffstat (limited to 'drivers/ide/ppc/mpc8xx.c')
-rw-r--r-- | drivers/ide/ppc/mpc8xx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ide/ppc/mpc8xx.c b/drivers/ide/ppc/mpc8xx.c index 82de2d781f2e..8859fe2f5ac2 100644 --- a/drivers/ide/ppc/mpc8xx.c +++ b/drivers/ide/ppc/mpc8xx.c | |||
@@ -316,6 +316,7 @@ m8xx_ide_init_hwif_ports(hw_regs_t *hw, unsigned long data_port, | |||
316 | } | 316 | } |
317 | 317 | ||
318 | /* register routine to tune PIO mode */ | 318 | /* register routine to tune PIO mode */ |
319 | ide_hwifs[data_port].pio_mask = ATA_PIO4; | ||
319 | ide_hwifs[data_port].tuneproc = m8xx_ide_tuneproc; | 320 | ide_hwifs[data_port].tuneproc = m8xx_ide_tuneproc; |
320 | 321 | ||
321 | hw->ack_intr = (ide_ack_intr_t *) ide_interrupt_ack; | 322 | hw->ack_intr = (ide_ack_intr_t *) ide_interrupt_ack; |
@@ -402,6 +403,7 @@ void m8xx_ide_init_hwif_ports (hw_regs_t *hw, | |||
402 | } | 403 | } |
403 | 404 | ||
404 | /* register routine to tune PIO mode */ | 405 | /* register routine to tune PIO mode */ |
406 | ide_hwifs[data_port].pio_mask = ATA_PIO4; | ||
405 | ide_hwifs[data_port].tuneproc = m8xx_ide_tuneproc; | 407 | ide_hwifs[data_port].tuneproc = m8xx_ide_tuneproc; |
406 | 408 | ||
407 | hw->ack_intr = (ide_ack_intr_t *) ide_interrupt_ack; | 409 | hw->ack_intr = (ide_ack_intr_t *) ide_interrupt_ack; |
@@ -431,13 +433,12 @@ void m8xx_ide_init_hwif_ports (hw_regs_t *hw, | |||
431 | static void | 433 | static void |
432 | m8xx_ide_tuneproc(ide_drive_t *drive, u8 pio) | 434 | m8xx_ide_tuneproc(ide_drive_t *drive, u8 pio) |
433 | { | 435 | { |
434 | ide_pio_data_t d; | ||
435 | #if defined(CONFIG_IDE_8xx_PCCARD) || defined(CONFIG_IDE_8xx_DIRECT) | 436 | #if defined(CONFIG_IDE_8xx_PCCARD) || defined(CONFIG_IDE_8xx_DIRECT) |
436 | volatile pcmconf8xx_t *pcmp; | 437 | volatile pcmconf8xx_t *pcmp; |
437 | ulong timing, mask, reg; | 438 | ulong timing, mask, reg; |
438 | #endif | 439 | #endif |
439 | 440 | ||
440 | pio = ide_get_best_pio_mode(drive, pio, 4, &d); | 441 | pio = ide_get_best_pio_mode(drive, pio, 4); |
441 | 442 | ||
442 | #if 1 | 443 | #if 1 |
443 | printk("%s[%d] %s: best PIO mode: %d\n", | 444 | printk("%s[%d] %s: best PIO mode: %d\n", |