diff options
author | Kefeng Wang <kefeng.wang@linaro.org> | 2014-03-17 19:46:14 +0800 |
---|---|---|
committer | Kefeng Wang <kefeng.wang@linaro.org> | 2014-03-17 19:55:22 +0800 |
commit | 722b55ce55d1b867c8e6db507f72e3771ee37faf (patch) | |
tree | f1809d4bdb9c7b154b09543f1827bb924358af38 | |
parent | 2c932f5e27c6093db766e6f2f5d38eeedb72c6e7 (diff) |
ahci: hip04: fix hardware error about FBS featuretracking-hilt-d01-sata-20140317
Hisilicon hip04 sata has a wrong bit in HOST_CAP, which
enable unsupported feature of FBS, so disable it.
Note:
- This patch will not be upsteam. It's just for hip04 sata.
Signed-off-by: Kefeng Wang <kefeng.wang@linaro.org>
-rw-r--r-- | drivers/ata/ahci_platform.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index be1d214a1b35..6a76f505ba92 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c @@ -158,6 +158,11 @@ static int ahci_probe(struct platform_device *pdev) pdata ? pdata->force_port_map : 0, pdata ? pdata->mask_port_map : 0); +#ifdef CONFIG_ARCH_HIP04 + /* hip04 ahci has hardware issue(error bit of FBS feature) */ + hpriv->cap &= ~HOST_CAP_FBS; + hpriv->saved_cap &= ~HOST_CAP_FBS; +#endif /* prepare host */ if (hpriv->cap & HOST_CAP_NCQ) pi.flags |= ATA_FLAG_NCQ; |