提交 dee82bc1 编写于 作者: G Graeme Gregory 提交者: Rafael J. Wysocki

ACPI: SPCR: extend XGENE 8250 workaround to m400

xgene v1/v2 chips are also used on moonshot cartridges that have
different table headers to the ones on Mustang. Extend the quirk
so it also recognises the Moonshot M400 variant too.
Signed-off-by: NGraeme Gregory <graeme.gregory@linaro.org>
Tested-by: NMark Salter <msalter@redhat.com>
Reviewed-by: NMark Salter <msalter@redhat.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 ef954844
...@@ -53,17 +53,24 @@ static bool qdf2400_erratum_44_present(struct acpi_table_header *h) ...@@ -53,17 +53,24 @@ static bool qdf2400_erratum_44_present(struct acpi_table_header *h)
*/ */
static bool xgene_8250_erratum_present(struct acpi_table_spcr *tb) static bool xgene_8250_erratum_present(struct acpi_table_spcr *tb)
{ {
bool xgene_8250 = false;
if (tb->interface_type != ACPI_DBG2_16550_COMPATIBLE) if (tb->interface_type != ACPI_DBG2_16550_COMPATIBLE)
return false; return false;
if (memcmp(tb->header.oem_id, "APMC0D", ACPI_OEM_ID_SIZE)) if (memcmp(tb->header.oem_id, "APMC0D", ACPI_OEM_ID_SIZE) &&
memcmp(tb->header.oem_id, "HPE ", ACPI_OEM_ID_SIZE))
return false; return false;
if (!memcmp(tb->header.oem_table_id, "XGENESPC", if (!memcmp(tb->header.oem_table_id, "XGENESPC",
ACPI_OEM_TABLE_ID_SIZE) && tb->header.oem_revision == 0) ACPI_OEM_TABLE_ID_SIZE) && tb->header.oem_revision == 0)
return true; xgene_8250 = true;
return false; if (!memcmp(tb->header.oem_table_id, "ProLiant",
ACPI_OEM_TABLE_ID_SIZE) && tb->header.oem_revision == 1)
xgene_8250 = true;
return xgene_8250;
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册