diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-25 16:57:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-01-25 16:57:26 -0500 |
commit | f31c338675872875e24f124af0689131b0c72600 (patch) | |
tree | cf12b28d52da1675ab32871abd2db455ffbfe920 /drivers/ide/ide.c | |
parent | 0008bf54408d4c0637c24d34642f1038c299be95 (diff) | |
parent | 61a368c216897aa3bbee35b3f2e6db76ec73fad0 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6: (67 commits)
ide: remove redundant DMA blacklist check from __ide_dma_on()
ide: cleanup ide_set_dma()
ide: remove redundant ->ide_dma_on call from set_using_dma()
sc1200: move DMA timings to timing tables
ide: add IDE_HFLAG_ABUSE_SET_DMA_MODE host flag
sis5513: factor out UDMA programming code
pdc202xx_new: move PIO programming code to pdcnew_set_pio_mode()
ide: make 'extra' field in struct ide_port_info u8
ide: kill duplicate code in ide_dump_{ata,atapi}_status()
ide-disk: use ide_get_lba_addr()
ide: printk fix
ide: add ide_tf_read() helper
ide: fix registers loading order in ide_dump_ata_status()
ide-disk: use do_rw_taskfile() (take 2)
ide-disk: add ide_tf_set_cmd() helper
ide-disk: extend timeout for PIO-in commands
ide: remove 'handler' field from ide_task_t (take 2)
ide: use ->data_phase to set ->handler in do_rw_taskfile()
ide: convert do_rw_taskfile() to use ->data_phase
ide: merge flagged_taskfile() into do_rw_taskfile()
...
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r-- | drivers/ide/ide.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index 54943da6e4e5..c6d4f630e18a 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c | |||
@@ -424,7 +424,6 @@ static void ide_hwif_restore(ide_hwif_t *hwif, ide_hwif_t *tmp_hwif) | |||
424 | hwif->reset_poll = tmp_hwif->reset_poll; | 424 | hwif->reset_poll = tmp_hwif->reset_poll; |
425 | hwif->pre_reset = tmp_hwif->pre_reset; | 425 | hwif->pre_reset = tmp_hwif->pre_reset; |
426 | hwif->resetproc = tmp_hwif->resetproc; | 426 | hwif->resetproc = tmp_hwif->resetproc; |
427 | hwif->intrproc = tmp_hwif->intrproc; | ||
428 | hwif->maskproc = tmp_hwif->maskproc; | 427 | hwif->maskproc = tmp_hwif->maskproc; |
429 | hwif->quirkproc = tmp_hwif->quirkproc; | 428 | hwif->quirkproc = tmp_hwif->quirkproc; |
430 | hwif->busproc = tmp_hwif->busproc; | 429 | hwif->busproc = tmp_hwif->busproc; |
@@ -468,7 +467,6 @@ static void ide_hwif_restore(ide_hwif_t *hwif, ide_hwif_t *tmp_hwif) | |||
468 | #endif | 467 | #endif |
469 | 468 | ||
470 | hwif->dma_base = tmp_hwif->dma_base; | 469 | hwif->dma_base = tmp_hwif->dma_base; |
471 | hwif->dma_master = tmp_hwif->dma_master; | ||
472 | hwif->dma_command = tmp_hwif->dma_command; | 470 | hwif->dma_command = tmp_hwif->dma_command; |
473 | hwif->dma_vendor1 = tmp_hwif->dma_vendor1; | 471 | hwif->dma_vendor1 = tmp_hwif->dma_vendor1; |
474 | hwif->dma_status = tmp_hwif->dma_status; | 472 | hwif->dma_status = tmp_hwif->dma_status; |
@@ -602,7 +600,6 @@ void ide_unregister(unsigned int index) | |||
602 | (void) ide_release_dma(hwif); | 600 | (void) ide_release_dma(hwif); |
603 | 601 | ||
604 | hwif->dma_base = 0; | 602 | hwif->dma_base = 0; |
605 | hwif->dma_master = 0; | ||
606 | hwif->dma_command = 0; | 603 | hwif->dma_command = 0; |
607 | hwif->dma_vendor1 = 0; | 604 | hwif->dma_vendor1 = 0; |
608 | hwif->dma_status = 0; | 605 | hwif->dma_status = 0; |
@@ -854,8 +851,7 @@ int set_using_dma(ide_drive_t *drive, int arg) | |||
854 | err = 0; | 851 | err = 0; |
855 | 852 | ||
856 | if (arg) { | 853 | if (arg) { |
857 | hwif->dma_off_quietly(drive); | 854 | if (ide_set_dma(drive)) |
858 | if (ide_set_dma(drive) || hwif->ide_dma_on(drive)) | ||
859 | err = -EIO; | 855 | err = -EIO; |
860 | } else | 856 | } else |
861 | ide_dma_off(drive); | 857 | ide_dma_off(drive); |