From: Robert Hancock Date: Tue, 27 Mar 2007 05:43:36 +0000 (-0800) Subject: sata_nv: don't read shadow registers when in ADMA mode X-Git-Tag: v2.6.22-rc1~1111^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2fb344beadf79f9d265c3fc60e8399bbf917a4d;p=pandora-kernel.git sata_nv: don't read shadow registers when in ADMA mode Reading from the ATA shadow registers while we are in ADMA mode may cause undefined behavior. Don't read the ATA status register when completing commands for this reason, it shouldn't be needed as the controller will notify us if the command failed. Also, don't allow commands with result taskfile requested to execute in ADMA mode, since that requires accessing the shadow registers. We also still need to override tf_read since libata will read the result taskfile on a command failure, and we need to go into port register mode before allowing this. Signed-off-by: Robert Hancock Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed