]> git.baikalelectronics.ru Git - kernel.git/commit
piix/slc90e66: more tuneproc() fixing (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)
commit66b390d453ec586e3c75e09855386885130d7343
treeb6ae434b49d14aa2fde153e815a8e0e34860a116
parent85b18face9ab1ce61750f98c91372e17dc3609e2
piix/slc90e66: more tuneproc() fixing (take 2)

The tuneproc() method in both these drivers failed to set the drive's own speed.
Fix this by renaming the function and "wrapping around it" the new tuneproc()
method.  Switch back to calling tuneproc() in the PIO fallback code.
While at it, also convert the rest of the PIO timing code into proper C. :-)

Has been kind of tested on SLC90E66.  I'm too lazy to reboot my box and test
on ICH4... :-)

[ bart: I quickly tested it on ICH4. ]

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/pci/piix.c
drivers/ide/pci/slc90e66.c