ahci_xgene: Implement the workaround to support PMP enumeration and discovery.
authorSuman Tripathi <stripathi@apm.com>
Tue, 6 Jan 2015 10:02:16 +0000 (15:32 +0530)
committerTejun Heo <tj@kernel.org>
Tue, 6 Jan 2015 13:38:25 +0000 (08:38 -0500)
commita3a84bc7c885eee954f1971c43e36a3587fbf565
tree716bfc911157bf8d68b32d74c883485f66afdfe9
parent1540035da71ea0feecdf24eeb98471ffa08da0d3
ahci_xgene: Implement the workaround to support PMP enumeration and discovery.

Due to H/W errata, the controller is unable to save the PMP
field fetched from command header before sending the H2D FIS.
When the device returns the PMP port field in the D2H FIS, there is
a mismatch and results in command completion failure. The workaround
is to write the pmp value to PxFBS.DEV field before issuing any command
to PMP.

Signed-off-by: Suman Tripathi <stripathi@apm.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci_xgene.c