]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sata_nv: wait for response on entering/leaving ADMA mode
authorRobert Hancock <hancockr@shaw.ca>
Tue, 6 Feb 2007 00:26:03 +0000 (16:26 -0800)
committerJeff Garzik <jeff@garzik.org>
Fri, 9 Feb 2007 22:39:39 +0000 (17:39 -0500)
commita2cfe81a59eea45a3f9afb4f652f7619982eac62
tree6c0ef338312686c0e92fc8f950ecc98ff8be8f9a
parent382a6652e91b34d5480cfc0ed840c196650493d4
sata_nv: wait for response on entering/leaving ADMA mode

Update sata_nv to wait for the controller to indicate via the status
register that it has entered the requested state when switching between
ADMA mode and register mode.  This issue came up recently when debugging
some problems with cache flush command timeouts and while it didn't appear
to fix that problem, this is something we should likely be doing in any
case.

Signed-off-by: Robert Hancock <hancockr@shaw.ca>
Cc: Tejun Heo <htejun@gmail.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/sata_nv.c