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)
committerMatt Sealey <neko@excel.(none)>
Tue, 10 Aug 2010 16:50:52 +0000 (11:50 -0500)
commit645eec03f46755dc7ef0fdaf460e824bcf07e1fc
tree365cdc364a78c7503a62de0b2ff58d8fc162c6b8
parentba80c5ba5281c288617b13d118662a9cbfc1bc10
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