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/cris/ide-cris.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/cris/ide-cris.c')
-rw-r--r-- | drivers/ide/cris/ide-cris.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/ide/cris/ide-cris.c b/drivers/ide/cris/ide-cris.c index 886091bc7db0..fbfea46a34f2 100644 --- a/drivers/ide/cris/ide-cris.c +++ b/drivers/ide/cris/ide-cris.c | |||
@@ -414,12 +414,6 @@ cris_ide_reset(unsigned val) | |||
414 | #ifdef CONFIG_ETRAX_IDE_G27_RESET | 414 | #ifdef CONFIG_ETRAX_IDE_G27_RESET |
415 | REG_SHADOW_SET(R_PORT_G_DATA, port_g_data_shadow, 27, val); | 415 | REG_SHADOW_SET(R_PORT_G_DATA, port_g_data_shadow, 27, val); |
416 | #endif | 416 | #endif |
417 | #ifdef CONFIG_ETRAX_IDE_CSE1_16_RESET | ||
418 | REG_SHADOW_SET(port_cse1_addr, port_cse1_shadow, 16, val); | ||
419 | #endif | ||
420 | #ifdef CONFIG_ETRAX_IDE_CSP0_8_RESET | ||
421 | REG_SHADOW_SET(port_csp0_addr, port_csp0_shadow, 8, val); | ||
422 | #endif | ||
423 | #ifdef CONFIG_ETRAX_IDE_PB7_RESET | 417 | #ifdef CONFIG_ETRAX_IDE_PB7_RESET |
424 | port_pb_dir_shadow = port_pb_dir_shadow | | 418 | port_pb_dir_shadow = port_pb_dir_shadow | |
425 | IO_STATE(R_PORT_PB_DIR, dir7, output); | 419 | IO_STATE(R_PORT_PB_DIR, dir7, output); |
@@ -690,6 +684,8 @@ static void tune_cris_ide(ide_drive_t *drive, u8 pio) | |||
690 | { | 684 | { |
691 | int setup, strobe, hold; | 685 | int setup, strobe, hold; |
692 | 686 | ||
687 | pio = ide_get_best_pio_mode(drive, pio, 4); | ||
688 | |||
693 | switch(pio) | 689 | switch(pio) |
694 | { | 690 | { |
695 | case 0: | 691 | case 0: |
@@ -820,6 +816,7 @@ init_e100_ide (void) | |||
820 | hwif->dma_host_on = &cris_dma_on; | 816 | hwif->dma_host_on = &cris_dma_on; |
821 | hwif->dma_off_quietly = &cris_dma_off; | 817 | hwif->dma_off_quietly = &cris_dma_off; |
822 | hwif->cbl = ATA_CBL_PATA40; | 818 | hwif->cbl = ATA_CBL_PATA40; |
819 | hwif->pio_mask = ATA_PIO4, | ||
823 | hwif->ultra_mask = cris_ultra_mask; | 820 | hwif->ultra_mask = cris_ultra_mask; |
824 | hwif->mwdma_mask = 0x07; /* Multiword DMA 0-2 */ | 821 | hwif->mwdma_mask = 0x07; /* Multiword DMA 0-2 */ |
825 | hwif->autodma = 1; | 822 | hwif->autodma = 1; |