From: Tejun Heo Date: Mon, 7 Jun 2010 13:15:08 +0000 (+0200) Subject: ahci: redo stopping DMA engines on empty ports X-Git-Tag: v2.6.35-rc3~30^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ee719527229fa86ace8e3abccae3c2a8bbfd6db;p=pandora-kernel.git ahci: redo stopping DMA engines on empty ports Commit 96d60303fd (ahci: Turn off DMA engines when there's no device) implemented stopping DMA engines on empty ports but it used single sampling of status registers to determine device presence which led to disabling of DMA engines on occupied ports. Do it after all EH actions are complete using device presence state determined by EH. This avoids spurious disabling of DMA engines and simplifies the code. Signed-off-by: Tejun Heo Tested-by: Marc Dionne Cc: Matthew Garrett Cc: Robert Hancock Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed