diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-12-03 11:25:57 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-12-03 11:25:57 -0500 |
commit | 7ca70e4d140b3907276f19a5e90efdcfd02627e7 (patch) | |
tree | 48eac56b681395fc83a1133b1f398ba79ed62dcc /drivers/ide | |
parent | 2db3dae51c1a096cfbd0e6f14c5ecca16e79a1d0 (diff) |
cmd64x: remove no longer needed debugging code
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/cmd64x.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/ide/cmd64x.c b/drivers/ide/cmd64x.c index ca0c46f6580a..f2500c8826bb 100644 --- a/drivers/ide/cmd64x.c +++ b/drivers/ide/cmd64x.c | |||
@@ -20,14 +20,6 @@ | |||
20 | 20 | ||
21 | #define DRV_NAME "cmd64x" | 21 | #define DRV_NAME "cmd64x" |
22 | 22 | ||
23 | #define CMD_DEBUG 0 | ||
24 | |||
25 | #if CMD_DEBUG | ||
26 | #define cmdprintk(x...) printk(x) | ||
27 | #else | ||
28 | #define cmdprintk(x...) | ||
29 | #endif | ||
30 | |||
31 | /* | 23 | /* |
32 | * CMD64x specific registers definition. | 24 | * CMD64x specific registers definition. |
33 | */ | 25 | */ |
@@ -76,9 +68,6 @@ static void program_cycle_times (ide_drive_t *drive, int cycle_time, int active_ | |||
76 | {15, 15, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 0}; | 68 | {15, 15, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 0}; |
77 | static const u8 drwtim_regs[4] = {DRWTIM0, DRWTIM1, DRWTIM2, DRWTIM3}; | 69 | static const u8 drwtim_regs[4] = {DRWTIM0, DRWTIM1, DRWTIM2, DRWTIM3}; |
78 | 70 | ||
79 | cmdprintk("program_cycle_times parameters: total=%d, active=%d\n", | ||
80 | cycle_time, active_time); | ||
81 | |||
82 | cycle_count = quantize_timing( cycle_time, clock_time); | 71 | cycle_count = quantize_timing( cycle_time, clock_time); |
83 | active_count = quantize_timing(active_time, clock_time); | 72 | active_count = quantize_timing(active_time, clock_time); |
84 | recovery_count = cycle_count - active_count; | 73 | recovery_count = cycle_count - active_count; |
@@ -94,9 +83,6 @@ static void program_cycle_times (ide_drive_t *drive, int cycle_time, int active_ | |||
94 | if (active_count > 16) /* shouldn't actually happen... */ | 83 | if (active_count > 16) /* shouldn't actually happen... */ |
95 | active_count = 16; | 84 | active_count = 16; |
96 | 85 | ||
97 | cmdprintk("Final counts: total=%d, active=%d, recovery=%d\n", | ||
98 | cycle_count, active_count, recovery_count); | ||
99 | |||
100 | /* | 86 | /* |
101 | * Convert values to internal chipset representation | 87 | * Convert values to internal chipset representation |
102 | */ | 88 | */ |
@@ -106,7 +92,6 @@ static void program_cycle_times (ide_drive_t *drive, int cycle_time, int active_ | |||
106 | /* Program the active/recovery counts into the DRWTIM register */ | 92 | /* Program the active/recovery counts into the DRWTIM register */ |
107 | drwtim = (active_count << 4) | recovery_count; | 93 | drwtim = (active_count << 4) | recovery_count; |
108 | (void) pci_write_config_byte(dev, drwtim_regs[drive->dn], drwtim); | 94 | (void) pci_write_config_byte(dev, drwtim_regs[drive->dn], drwtim); |
109 | cmdprintk("Write 0x%02x to reg 0x%x\n", drwtim, drwtim_regs[drive->dn]); | ||
110 | } | 95 | } |
111 | 96 | ||
112 | /* | 97 | /* |
@@ -150,7 +135,6 @@ static void cmd64x_tune_pio(ide_drive_t *drive, const u8 pio) | |||
150 | 135 | ||
151 | if (setup_count > 5) /* shouldn't actually happen... */ | 136 | if (setup_count > 5) /* shouldn't actually happen... */ |
152 | setup_count = 5; | 137 | setup_count = 5; |
153 | cmdprintk("Final address setup count: %d\n", setup_count); | ||
154 | 138 | ||
155 | /* | 139 | /* |
156 | * Program the address setup clocks into the ARTTIM registers. | 140 | * Program the address setup clocks into the ARTTIM registers. |
@@ -162,7 +146,6 @@ static void cmd64x_tune_pio(ide_drive_t *drive, const u8 pio) | |||
162 | arttim &= ~0xc0; | 146 | arttim &= ~0xc0; |
163 | arttim |= setup_values[setup_count]; | 147 | arttim |= setup_values[setup_count]; |
164 | (void) pci_write_config_byte(dev, arttim_regs[drive->dn], arttim); | 148 | (void) pci_write_config_byte(dev, arttim_regs[drive->dn], arttim); |
165 | cmdprintk("Write 0x%02x to reg 0x%x\n", arttim, arttim_regs[drive->dn]); | ||
166 | } | 149 | } |
167 | 150 | ||
168 | /* | 151 | /* |