diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-05-14 17:06:15 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-05-14 17:06:15 -0400 |
commit | df98668f178c39c54bc7b9cd3adb99cbd7ed8ada (patch) | |
tree | 5e9ebe814ab8b1e59f4a8796905b9a384421a9b9 | |
parent | e0b4eb5193fed5c63413b0c137be29b0477d15ca (diff) |
alim15x3: trivial cleanup for ali_set_pio_mode()
Remove commented out code and stale comment.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r-- | drivers/ide/pci/alim15x3.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/ide/pci/alim15x3.c b/drivers/ide/pci/alim15x3.c index c1922f9cfe80..a23b975e5b89 100644 --- a/drivers/ide/pci/alim15x3.c +++ b/drivers/ide/pci/alim15x3.c | |||
@@ -76,11 +76,6 @@ static void ali_set_pio_mode(ide_drive_t *drive, const u8 pio) | |||
76 | a_clc = 0; | 76 | a_clc = 0; |
77 | c_time = ide_pio_timings[pio].cycle_time; | 77 | c_time = ide_pio_timings[pio].cycle_time; |
78 | 78 | ||
79 | #if 0 | ||
80 | if ((r_clc = ((c_time - s_time - a_time) * bus_speed + 999) / 1000) >= 16) | ||
81 | r_clc = 0; | ||
82 | #endif | ||
83 | |||
84 | if (!(r_clc = (c_time * bus_speed + 999) / 1000 - a_clc - s_clc)) { | 79 | if (!(r_clc = (c_time * bus_speed + 999) / 1000 - a_clc - s_clc)) { |
85 | r_clc = 1; | 80 | r_clc = 1; |
86 | } else { | 81 | } else { |
@@ -110,16 +105,6 @@ static void ali_set_pio_mode(ide_drive_t *drive, const u8 pio) | |||
110 | pci_write_config_byte(dev, port, s_clc); | 105 | pci_write_config_byte(dev, port, s_clc); |
111 | pci_write_config_byte(dev, port+drive->select.b.unit+2, (a_clc << 4) | r_clc); | 106 | pci_write_config_byte(dev, port+drive->select.b.unit+2, (a_clc << 4) | r_clc); |
112 | local_irq_restore(flags); | 107 | local_irq_restore(flags); |
113 | |||
114 | /* | ||
115 | * setup active rec | ||
116 | * { 70, 165, 365 }, PIO Mode 0 | ||
117 | * { 50, 125, 208 }, PIO Mode 1 | ||
118 | * { 30, 100, 110 }, PIO Mode 2 | ||
119 | * { 30, 80, 70 }, PIO Mode 3 with IORDY | ||
120 | * { 25, 70, 25 }, PIO Mode 4 with IORDY ns | ||
121 | * { 20, 50, 30 } PIO Mode 5 with IORDY (nonstandard) | ||
122 | */ | ||
123 | } | 108 | } |
124 | 109 | ||
125 | /** | 110 | /** |