Files
u-boot/include
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
..
2019-12-06 16:44:20 -05:00
2019-10-16 05:42:27 +02:00
2020-09-30 16:55:03 -04:00
2020-08-24 14:11:31 -04:00
2020-05-11 10:16:49 +05:30
2020-04-17 12:32:36 -04:00
2020-10-06 09:07:54 -06:00
2020-07-09 12:33:24 +08:00
2020-05-18 17:33:33 -04:00
2020-07-28 19:30:39 -06:00
2020-02-05 19:33:46 -07:00
2020-09-01 14:47:43 +02:00
2020-02-05 19:33:46 -07:00
2019-10-13 23:34:43 +02:00
2020-05-07 09:01:42 -04:00
2020-08-03 22:19:54 -04:00
2020-09-06 21:21:41 +02:00
2020-05-18 21:19:23 -04:00
2020-05-18 17:33:33 -04:00
2020-08-07 22:31:32 -04:00
2020-05-18 17:33:33 -04:00
2020-06-12 13:14:07 -04:00
2019-10-14 09:31:41 +02:00
2020-01-20 15:38:16 +01:00
2019-11-07 18:39:16 -05:00
2020-05-18 18:36:55 -04:00
2019-08-11 16:43:41 -04:00
2020-04-17 12:32:36 -04:00
2020-08-04 23:30:02 -04:00
2019-12-02 18:23:11 -05:00
2020-09-30 08:52:46 -04:00
2020-01-25 12:04:36 -05:00
2020-02-05 19:33:46 -07:00
2020-05-18 17:33:33 -04:00
2020-07-17 10:47:19 -04:00
2020-06-14 21:07:20 +02:00
2020-09-30 11:55:23 -04:00
2020-02-05 19:33:46 -07:00
2020-06-14 21:07:20 +02:00
2020-07-09 06:02:44 +02:00
2020-09-30 11:55:23 -04:00
2020-05-18 17:33:31 -04:00
2020-02-05 19:33:46 -07:00
2020-08-03 22:19:54 -04:00
2020-08-03 22:19:54 -04:00
2020-08-11 20:34:46 +05:30
2020-08-07 22:31:32 -04:00
2020-08-23 13:43:10 -04:00
2020-08-03 22:19:54 -04:00
2020-01-21 15:56:15 +01:00
2020-04-24 16:40:09 -04:00
2020-08-03 22:19:54 -04:00
2020-08-03 22:19:54 -04:00