Commit 971342d7 authored by Haojian Zhuang's avatar Haojian Zhuang Committed by Andrey Konovalov

ata: ahci: append new hflag

Append AHCI_HFLAG_NO_FBS to force turning off FBS flag.
Signed-off-by: default avatarHaojian Zhuang <haojian.zhuang@linaro.org>
parent 4fe75b32
......@@ -232,6 +232,7 @@ enum {
port start (wait until
error-handling stage) */
AHCI_HFLAG_MULTI_MSI = (1 << 16), /* multiple PCI MSIs */
AHCI_HFLAG_NO_FBS = (1 << 17), /* no FBS */
/* ap->flags bits */
......
......@@ -450,6 +450,11 @@ void ahci_save_initial_config(struct device *dev,
cap &= ~HOST_CAP_SNTF;
}
if ((cap & HOST_CAP_FBS) && (hpriv->flags & AHCI_HFLAG_NO_FBS)) {
dev_info(dev, "controller can't do FBS, turning off CAP_FBS\n");
cap &= ~HOST_CAP_FBS;
}
if (!(cap & HOST_CAP_FBS) && (hpriv->flags & AHCI_HFLAG_YES_FBS)) {
dev_info(dev, "controller can do FBS, turning on CAP_FBS\n");
cap |= HOST_CAP_FBS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment