Commit 790956e7bbf0a7b73e72b04d3bd63d974c7e29bb
1 parent
2f8d90ab79
Exists in
master
and in
4 other branches
pata_hpt3x3: fix DMA Kconfig option to actually have a hope of working
The hook that set DMA mode was accidentally deleted in the original patch. Signed-off-by: Jeff Garzik <jeff@garzik.org>
Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff
drivers/ata/pata_hpt3x3.c
... | ... | @@ -52,6 +52,7 @@ |
52 | 52 | pci_write_config_dword(pdev, 0x48, r2); |
53 | 53 | } |
54 | 54 | |
55 | +#if defined(CONFIG_PATA_HPT3X3_DMA) | |
55 | 56 | /** |
56 | 57 | * hpt3x3_set_dmamode - DMA timing setup |
57 | 58 | * @ap: ATA interface |
... | ... | @@ -86,6 +87,7 @@ |
86 | 87 | pci_write_config_dword(pdev, 0x44, r1); |
87 | 88 | pci_write_config_dword(pdev, 0x48, r2); |
88 | 89 | } |
90 | +#endif /* CONFIG_PATA_HPT3X3_DMA */ | |
89 | 91 | |
90 | 92 | /** |
91 | 93 | * hpt3x3_atapi_dma - ATAPI DMA check |
... | ... | @@ -120,6 +122,9 @@ |
120 | 122 | static struct ata_port_operations hpt3x3_port_ops = { |
121 | 123 | .port_disable = ata_port_disable, |
122 | 124 | .set_piomode = hpt3x3_set_piomode, |
125 | +#if defined(CONFIG_PATA_HPT3X3_DMA) | |
126 | + .set_dmamode = hpt3x3_set_dmamode, | |
127 | +#endif | |
123 | 128 | .mode_filter = ata_pci_default_filter, |
124 | 129 | |
125 | 130 | .tf_load = ata_tf_load, |