[libata] pata_amd: program FIFO
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Wed, 11 Feb 2009 21:08:41 +0000 (13:08 -0800)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 25 Feb 2009 20:30:16 +0000 (15:30 -0500)
commitc48052cc36e02fff6a9bb3cf83c4206b9127611f
tree7f93272031092a90d2b5decccd381319aae72be4
parent6be96ac15e4d913e1f48299db083ada5321803b2
[libata] pata_amd: program FIFO

With 32bit PIO we can use the posted write buffers, but only for 32bit I/O
cycles.  This means we must disable the FIFO for ATAPI where a final 16bit
cycle may occur.

Rework the FIFO logic so that we disable the FIFO then selectively
re-enable it when we set the timings on AMD devices.  Also fix a case
where we scribbled on PCI config 0x41 of Nvidia chips when we shouldn't.

Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_amd.c