From: Mark Lord Date: Fri, 2 May 2008 06:09:14 +0000 (-0400) Subject: sata_mv wait for empty+idle X-Git-Tag: v2.6.26-rc2~59^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b2c4e0bae854fb5e88c9cacc0dacf21631c5cb0;p=pandora-kernel.git sata_mv wait for empty+idle When performing EH, it is recommended to wait for the EDMA engine to empty out requests-in-progress before disabling EDMA. Introduce code to poll the EDMA_STATUS register for idle/empty bits before disabling EDMA. For non-EH operation, this will normally exit without delay, other than the register read. A later series of patches may focus on eliminating this and various other register reads (when possible) throughout the driver, but for now we're focussing on solid reliablity. Signed-off-by: Mark Lord Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed