Sean Anderson c3f0278e29 net: Expose some errors generated in net_init
net_init does not always succeed, and there is no existing mechanism to
discover errors. This patch allows callers of net_init (such as net_init)
to handle errors. The root issue is that eth_get_dev can fail, but
net_init_loop doesn't expose that. The ideal way to fix eth_get_dev would
be to return an error with ERR_PTR, but there are a lot of callers, and all
of them just check if it's NULL. Another approach would be to change the
signature to something like

int eth_get_dev(struct udevice **pdev)

but that would require rewriting all of the many callers.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-10-10 16:50:12 -04:00
..
2020-06-12 13:17:23 -04:00
2020-09-30 16:55:03 -04:00
2020-09-30 16:55:03 -04:00
2020-05-18 21:19:18 -04:00
2019-09-04 11:37:19 -05:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:18 -04:00
2020-09-30 16:55:03 -04:00
2020-09-30 16:55:03 -04:00
2018-07-02 14:14:20 -05:00