aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSergei Shtylyov <sshtylyov@ru.mvista.com>2007-03-03 11:48:53 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-03-03 11:48:53 -0500
commit81d368e0e2591497106b2543918c79dd6d78277b (patch)
tree7c0977499403ca7cc21ae70760399642abef9e2d /include
parent07af427606667c304a2e965cd51d2c03642e8cae (diff)
ide: ide_get_best_pio_mode() returns incorrect IORDY setting (take 2)
The function ide_get_best_pio_mode() fails to return the correct IORDY setting for the explicitly specified modes -- fix this along with the heading comment, and also remove the long commented out code. Also, while at it, correct the misliading comment about the PIO cycle time in <linux/ide.h> -- it actually consists of only the active and recovery periods, with only some chips also including the address setup time into equation... [ bart: sl82c105 seems to be currently the only driver affected by this fix ] Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ide.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 79c028251c70..34f2676b3c62 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -1359,7 +1359,8 @@ u8 ide_dump_status(ide_drive_t *, const char *, u8);
1359typedef struct ide_pio_timings_s { 1359typedef struct ide_pio_timings_s {
1360 int setup_time; /* Address setup (ns) minimum */ 1360 int setup_time; /* Address setup (ns) minimum */
1361 int active_time; /* Active pulse (ns) minimum */ 1361 int active_time; /* Active pulse (ns) minimum */
1362 int cycle_time; /* Cycle time (ns) minimum = (setup + active + recovery) */ 1362 int cycle_time; /* Cycle time (ns) minimum = */
1363 /* active + recovery (+ setup for some chips) */
1363} ide_pio_timings_t; 1364} ide_pio_timings_t;
1364 1365
1365typedef struct ide_pio_data_s { 1366typedef struct ide_pio_data_s {