ahci: avoton port-disable reset-quirk
authorDan Williams <dan.j.williams@intel.com>
Fri, 8 May 2015 19:23:55 +0000 (15:23 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 6 Aug 2015 23:32:10 +0000 (00:32 +0100)
commitee156f0adfe053ba0a745cd77c7d697cbd153014
treefc7861d096f0e4159bc2cc736858ccf90fc097d4
parent15eb903daa9fcd80e3b4edfb5960793e6dfc6f67
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>
[bwh: Backported to 3.2:
 - Adjust context
 - Call ahci_start_engine() directly]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/ata/ahci.c