Thread (43 messages) flat view 43 messages, 7 authors, 2015-10-21

[PATCH v4 01/22] driver core: Add pre_probe callback to bus_type

From: broonie@kernel.org (Mark Brown)
Date: 2015-09-11 12:04:38
Also in: linux-acpi, linux-devicetree, lkml

On Mon, Sep 07, 2015 at 02:23:26PM +0200, Tomeu Vizoso wrote:
+	if (dev->bus && dev->bus->pre_probe) {
+		ret = dev->bus->pre_probe(dev);
+		if (ret) {
+			if (ret == -EPROBE_DEFER)
+				driver_deferred_probe_add(dev);
+			ret = 0;
+			goto out_unlock;
+		}
+	}
So if we get an error other than -EPROBE_DEFER we silently ignore it?
That seems surprising and at least worth a comment.
+	if (dev->bus && dev->bus->pre_probe) {
+		ret = dev->bus->pre_probe(dev);
+		if (ret) {
+			if (ret == -EPROBE_DEFER)
+				driver_deferred_probe_add(dev);
+			goto out;
+		}
+	}
That's more what I'd expect.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150911/58e60497/attachment.sig>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help