mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] of: of_path: fix return in case of EPROBE_DEFER
@ 2019-10-30 17:04 Marco Felsch
  2019-11-04  9:40 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Felsch @ 2019-10-30 17:04 UTC (permalink / raw)
  To: abbotti, barebox

As said in commit 82eb3dff10 ("of_path: handle no driver for device")
this case happens if the driver isn't probed yet. So we should return
-EPROBE_DEFER to signal that.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 drivers/of/of_path.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/of/of_path.c b/drivers/of/of_path.c
index f8bbf2cba1..5c3a020345 100644
--- a/drivers/of/of_path.c
+++ b/drivers/of/of_path.c
@@ -83,7 +83,7 @@ static int __of_find_path(struct device_node *node, const char *part, char **out
 	}
 
 	if (dev->bus && !dev->driver)
-		return -ENODEV;
+		return -EPROBE_DEFER;
 
 	device_detect(dev);
 
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH] of: of_path: fix return in case of EPROBE_DEFER
  2019-10-30 17:04 [PATCH] of: of_path: fix return in case of EPROBE_DEFER Marco Felsch
@ 2019-11-04  9:40 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2019-11-04  9:40 UTC (permalink / raw)
  To: Marco Felsch; +Cc: barebox, abbotti

On Wed, Oct 30, 2019 at 06:04:55PM +0100, Marco Felsch wrote:
> As said in commit 82eb3dff10 ("of_path: handle no driver for device")
> this case happens if the driver isn't probed yet. So we should return
> -EPROBE_DEFER to signal that.
> 
> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> ---
>  drivers/of/of_path.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2019-11-04  9:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-30 17:04 [PATCH] of: of_path: fix return in case of EPROBE_DEFER Marco Felsch
2019-11-04  9:40 ` Sascha Hauer

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