From: Kefeng Wang Date: Tue, 24 Jun 2014 20:54:23 +0000 (-0400) Subject: ahci: disable ncq feature for hisilicon sata X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=17e06c3b0ab91f644f867aa45fba590911d0e517;p=karo-tx-linux.git ahci: disable ncq feature for hisilicon sata NCQ feature is unsupported on hisilicon sata controller, so disable it. This version of IP is used by hip04 and hix5hd2 soc. tj: "|=" was replaced with "=" for no reason. Restored "|=". Signed-off-by: Kefeng Wang Sigend-off-by: Tejun Heo (cherry picked from commit 72cbaa3d2f563d7b48c9f8aef47ec9aa3a31adf2) --- diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index ebe505c17763..b10d81ddb528 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c @@ -58,7 +58,7 @@ static int ahci_probe(struct platform_device *pdev) } if (of_device_is_compatible(dev->of_node, "hisilicon,hisi-ahci")) - hflags |= AHCI_HFLAG_NO_FBS; + hflags |= AHCI_HFLAG_NO_FBS | AHCI_HFLAG_NO_NCQ; rc = ahci_platform_init_host(pdev, hpriv, &ahci_port_info, hflags, 0, 0);