mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] HISI LPC: Don't fail probe for unrecognised child devices
@ 2019-01-03 11:57 John Garry
  2019-01-04 22:25 ` Olof Johansson
  2019-02-08  9:49 ` Wei Xu
  0 siblings, 2 replies; 4+ messages in thread
From: John Garry @ 2019-01-03 11:57 UTC (permalink / raw)
  To: xuwei5; +Cc: arm, linuxarm, linux-kernel, John Garry

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
initial out-of-tree 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.

Tested-by: Zengruan Ye <yezengruan@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>

diff --git a/drivers/bus/hisi_lpc.c b/drivers/bus/hisi_lpc.c
index d5f8545..19d7b6f 100644
--- a/drivers/bus/hisi_lpc.c
+++ b/drivers/bus/hisi_lpc.c
@@ -522,10 +522,9 @@ static int hisi_lpc_acpi_probe(struct device *hostdev)
 
 		if (!found) {
 			dev_warn(hostdev,
-				 "could not find cell for child device (%s)\n",
+				 "could not find cell for child device (%s), discarding\n",
 				 hid);
-			ret = -ENODEV;
-			goto fail;
+			continue;
 		}
 
 		pdev = platform_device_alloc(cell->name, PLATFORM_DEVID_AUTO);
-- 
1.9.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-02-08  9:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-03 11:57 [PATCH] HISI LPC: Don't fail probe for unrecognised child devices John Garry
2019-01-04 22:25 ` Olof Johansson
2019-01-07 10:31   ` John Garry
2019-02-08  9:49 ` Wei Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®