[PATCH] PIIX/SLC90E66: PIO mode fallback fix
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Sat, 30 Dec 2006 00:49:26 +0000 (16:49 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 30 Dec 2006 18:56:43 +0000 (10:56 -0800)
commit44854add66811124a5667466245b6824f751143a
tree5413f8e9974860dee9831a0731d739376cef0045
parent242ce41fc92214c3430495edd43783c3ba3dcd2b
[PATCH] PIIX/SLC90E66: PIO mode fallback fix

The fallback to PIO mode in the hwif->dma_check() handler doesn't work in
the Intel PIIX and SMsC SLC90E66 IDE drivers because:

- config_drive_for_dma() calls the hwif->speedproc() handler with a wrong
  mode number (unbiased by XFER_PIO_0) in case of the PIO fallback;

- hwif->tuneproc() handler doesn't really set the drive's own speed (this
  is not fixed as yet).

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Acked-by: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/ide/pci/piix.c
drivers/ide/pci/slc90e66.c