diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 19:56:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 19:56:35 -0400 |
commit | 2b0460b534f383eca744eb8fff66ec9f57e702b9 (patch) | |
tree | 1bf4b9d0ebccd3083da4de7e4273b8d29f5d5c5d /drivers/ide/cris/ide-cris.c | |
parent | d91f5bb69adde86173071cf7fffbdf705ae8c6e7 (diff) | |
parent | b02fcae007ac64012806bc57054e7fee6e2ffe5e (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: (33 commits)
amd74xx: remove /proc/ide/amd74xx
amd74xx/via82cxxx: don't initialize drive->dn
sis5513: remove /proc/ide/sis
ide: remove CONFIG_IDEDMA_ONLYDISK
ide: add "hdx=nodma" kernel parameter
ide: remove hwif->autodma and drive->autodma
ide: remove "idex=dma" kernel parameter
ide: remove CONFIG_BLK_DEV_IDEDMA_FORCED
ide: use PCI_VDEVICE() macro
sis5513: clear prefetch and postwrite for ATAPI devices
it8213/piix/slc90e66: "de-couple" PIO and UDMA modes
ide: unexport noautodma
ide: unexport ide_tune_dma
ide: remove ->ide_dma_check (take 2)
ide-pmac: add PIO autotune fallback to ->ide_dma_check
ide-cris: add PIO autotune fallback to ->ide_dma_check
sl82c105: add PIO autotune fallback to ->ide_dma_check
cs5530/sc1200: add PIO autotune fallback to ->ide_dma_check
ide: remove ide_use_fast_pio()
ide: remove drive->init_speed zeroing
...
Diffstat (limited to 'drivers/ide/cris/ide-cris.c')
-rw-r--r-- | drivers/ide/cris/ide-cris.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/ide/cris/ide-cris.c b/drivers/ide/cris/ide-cris.c index c306c9f534ab..06c75f18eb88 100644 --- a/drivers/ide/cris/ide-cris.c +++ b/drivers/ide/cris/ide-cris.c | |||
@@ -664,7 +664,6 @@ cris_ide_inb(unsigned long reg) | |||
664 | return (unsigned char)cris_ide_inw(reg); | 664 | return (unsigned char)cris_ide_inw(reg); |
665 | } | 665 | } |
666 | 666 | ||
667 | static int cris_dma_check (ide_drive_t *drive); | ||
668 | static int cris_dma_end (ide_drive_t *drive); | 667 | static int cris_dma_end (ide_drive_t *drive); |
669 | static int cris_dma_setup (ide_drive_t *drive); | 668 | static int cris_dma_setup (ide_drive_t *drive); |
670 | static void cris_dma_exec_cmd (ide_drive_t *drive, u8 command); | 669 | static void cris_dma_exec_cmd (ide_drive_t *drive, u8 command); |
@@ -792,7 +791,6 @@ init_e100_ide (void) | |||
792 | hwif->ata_output_data = &cris_ide_output_data; | 791 | hwif->ata_output_data = &cris_ide_output_data; |
793 | hwif->atapi_input_bytes = &cris_atapi_input_bytes; | 792 | hwif->atapi_input_bytes = &cris_atapi_input_bytes; |
794 | hwif->atapi_output_bytes = &cris_atapi_output_bytes; | 793 | hwif->atapi_output_bytes = &cris_atapi_output_bytes; |
795 | hwif->ide_dma_check = &cris_dma_check; | ||
796 | hwif->ide_dma_end = &cris_dma_end; | 794 | hwif->ide_dma_end = &cris_dma_end; |
797 | hwif->dma_setup = &cris_dma_setup; | 795 | hwif->dma_setup = &cris_dma_setup; |
798 | hwif->dma_exec_cmd = &cris_dma_exec_cmd; | 796 | hwif->dma_exec_cmd = &cris_dma_exec_cmd; |
@@ -808,11 +806,10 @@ init_e100_ide (void) | |||
808 | hwif->dma_off_quietly = &cris_dma_off; | 806 | hwif->dma_off_quietly = &cris_dma_off; |
809 | hwif->cbl = ATA_CBL_PATA40; | 807 | hwif->cbl = ATA_CBL_PATA40; |
810 | hwif->pio_mask = ATA_PIO4, | 808 | hwif->pio_mask = ATA_PIO4, |
809 | hwif->drives[0].autotune = 1; | ||
810 | hwif->drives[1].autotune = 1; | ||
811 | hwif->ultra_mask = cris_ultra_mask; | 811 | hwif->ultra_mask = cris_ultra_mask; |
812 | hwif->mwdma_mask = 0x07; /* Multiword DMA 0-2 */ | 812 | hwif->mwdma_mask = 0x07; /* Multiword DMA 0-2 */ |
813 | hwif->autodma = 1; | ||
814 | hwif->drives[0].autodma = 1; | ||
815 | hwif->drives[1].autodma = 1; | ||
816 | } | 813 | } |
817 | 814 | ||
818 | /* Reset pulse */ | 815 | /* Reset pulse */ |
@@ -1018,14 +1015,6 @@ static ide_startstop_t cris_dma_intr (ide_drive_t *drive) | |||
1018 | * the caller should revert to PIO for the current request. | 1015 | * the caller should revert to PIO for the current request. |
1019 | */ | 1016 | */ |
1020 | 1017 | ||
1021 | static int cris_dma_check(ide_drive_t *drive) | ||
1022 | { | ||
1023 | if (ide_tune_dma(drive)) | ||
1024 | return 0; | ||
1025 | |||
1026 | return -1; | ||
1027 | } | ||
1028 | |||
1029 | static int cris_dma_end(ide_drive_t *drive) | 1018 | static int cris_dma_end(ide_drive_t *drive) |
1030 | { | 1019 | { |
1031 | drive->waiting_for_dma = 0; | 1020 | drive->waiting_for_dma = 0; |