Fix sata_via write errors on PATA drive connected to VT6421
authorOndrej Zary <linux@rainbow-software.org>
Fri, 31 Aug 2007 22:55:21 +0000 (00:55 +0200)
committerJeff Garzik <jeff@garzik.org>
Sat, 1 Sep 2007 10:52:18 +0000 (06:52 -0400)
commitb4154d4a01c6cc98b97dc239ca4302316c8f98da
tree6437acc46fe1765a1fe211e5e088cbe818d0a486
parent7d05154840db52201d8e719fd0f091b8381e362f
Fix sata_via write errors on PATA drive connected to VT6421

I think that I've found and fixed the problem. There is a copy/paste bug in
vt6421_set_dma_mode() function which causes wrong values to be written to
PATA_UDMA_TIMING register.

This patch fixes a copy/paste bug that breaks DMA modes on VT6421 PATA port.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/sata_via.c