]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ahci: avoton port-disable reset-quirk
authorDan Williams <dan.j.williams@intel.com>
Fri, 8 May 2015 19:23:55 +0000 (15:23 -0400)
committerZefan Li <lizefan@huawei.com>
Fri, 18 Sep 2015 01:20:39 +0000 (09:20 +0800)
commitf5d35596f9a9e21217436a7892d3ed0366cf0997
tree397bb3bd9465de756be61addea71cfb0a7d9e6f0
parent467d87ef7baf75e36686238de6fbb083d758b736
ahci: avoton port-disable reset-quirk

commit dbfe8ef5599a5370abc441fcdbb382b656563eb4 upstream.

Avoton AHCI occasionally sees drive probe timeouts at driver load time.
When this happens SCR_STATUS indicates device detected, but no D2H FIS
reception.  Reset the internal link state machines by bouncing
port-enable in the PCS register when this occurs.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
[lizf: Backported to 3.4:
 - adjust context
 - use ahci_start_engine() instead of hpriv->start_engine()]
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/ata/ahci.c