ahci: kill @force_restart and refine CLO for ahci_kick_engine()
authorShane Huang <shane.huang@amd.com>
Fri, 7 Aug 2009 07:05:52 +0000 (15:05 +0800)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 11 Sep 2009 06:31:52 +0000 (02:31 -0400)
commit78d5ae39af19a02a3d16213c0f62930d9a5d25f7
treee74c4be53167bd7d7efe9ad4188062831d0ab8be
parent02cb009bb942007b76c38da4cc2ca0a0a974c667
ahci: kill @force_restart and refine CLO for ahci_kick_engine()

This patch refines ahci_kick_engine() after discussion with Tejun about
FBS(FIS-based switching) support preparation:
a. Kill @force_restart and always kick the engine. The only case where
   @force_restart is zero is when it's called from ahci_p5wdh_hardreset()
   Actually at that point, BSY is pretty much guaranteed to be set.
b. If PMP is attached, ignore busy and always do CLO. (AHCI-1.3 9.2)

Signed-off-by: Shane Huang <shane.huang@amd.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/ahci.c