piix/slc90e66: more tuneproc() fixing (take 2)
commit07af427606667c304a2e965cd51d2c03642e8cae
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Sat, 3 Mar 2007 16:48:53 +0000 (3 17:48 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 3 Mar 2007 16:48:53 +0000 (3 17:48 +0100)
treeb6ae434b49d14aa2fde153e815a8e0e34860a116
parentfab59375b9543f84d1714f7dd00f5d11e531bd3e
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