提交 bcf00808 编写于 作者: J John Garry 提交者: Xie XiuQi

HISI LPC: Don't fail probe for unrecognised child devices

mainline inclusion
from next
commit: <not-yet-available>
category: bugfix
bugzilla: 5498
CVE: NA

-----------------------------------------

Currently for ACPI-based FW we fail the probe for an unrecognised child
HID.

However, there is FW in the field with LPC child devices having fake HIDs,
namely "IPI0002", which was an IPMI device invented to support the origin
LPC host driver, different from the final mainline version.

To provide compatibility support for these dodgy FWs, just discard the
unrecognised HIDs instead of failing the probe altogether.
Signed-off-by: NJohn Garry <john.garry@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 5bdbcf42
...@@ -522,10 +522,9 @@ static int hisi_lpc_acpi_probe(struct device *hostdev) ...@@ -522,10 +522,9 @@ static int hisi_lpc_acpi_probe(struct device *hostdev)
if (!found) { if (!found) {
dev_warn(hostdev, dev_warn(hostdev,
"could not find cell for child device (%s)\n", "could not find cell for child device (%s), discarding\n",
hid); hid);
ret = -ENODEV; continue;
goto fail;
} }
pdev = platform_device_alloc(cell->name, PLATFORM_DEVID_AUTO); pdev = platform_device_alloc(cell->name, PLATFORM_DEVID_AUTO);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册