]> git.baikalelectronics.ru Git - kernel.git/commit
ide: ide_get_best_pio_mode() returns incorrect IORDY setting (take 2)
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Sat, 3 Mar 2007 16:48:53 +0000 (17:48 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 3 Mar 2007 16:48:53 +0000 (17:48 +0100)
commitcc6b0ec8037fd3b8809f0174baa59f82e5667b1e
tree7c0977499403ca7cc21ae70760399642abef9e2d
parent66b390d453ec586e3c75e09855386885130d7343
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>
drivers/ide/ide-lib.c
include/linux/ide.h