[libata] sata_mv: cache frequently-accessed registers
authorMark Lord <mlord@pobox.com>
Wed, 25 Feb 2009 20:13:03 +0000 (15:13 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 25 Mar 2009 02:02:40 +0000 (22:02 -0400)
commit08da175937a35d34a83eaefbb3458472eb1a89d4
tree32e8be09d7fc0c878b479a65666a18b0341b7529
parenta5bfc4714b3f01365aef89a92673f2ceb1ccf246
[libata] sata_mv: cache frequently-accessed registers

Maintain a local (mv_port_priv) cache of frequently accessed registers,
to avoid having to re-read them (very slow) on every transistion
between EDMA and non-EDMA modes.  This speeds up things like
flushing the drive write cache, and anything using basic DMA transfers.

Signed-off-by: Mark Lord <mlord@pobox.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/sata_mv.c