From 722b55ce55d1b867c8e6db507f72e3771ee37faf Mon Sep 17 00:00:00 2001 From: Kefeng Wang Date: Mon, 17 Mar 2014 19:46:14 +0800 Subject: ahci: hip04: fix hardware error about FBS feature 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 --- drivers/ata/ahci_platform.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- cgit v1.2.3