u-boot-brain/net
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
..
arp.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
arp.h net: Don't overwrite waiting packets with asynchronous replies 2018-10-10 12:29:01 -05:00
bootp.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
bootp.h net: Use packed structures for networking 2017-08-07 15:18:31 -05:00
cdp.c SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
cdp.h SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
dns.c net: move random_port() to dns 2020-06-12 13:17:23 -04:00
dns.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
eth_common.c common: Drop bootstage.h from common header 2020-05-18 17:33:33 -04:00
eth_internal.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
eth_legacy.c net: use log_err() for 'No ethernet found' message 2020-09-30 16:48:18 -04:00
eth-uclass.c net: Expose some errors generated in net_init 2020-10-10 16:50:12 -04:00
fastboot.c fastboot: Add support for 'reboot fastboot' command 2020-09-01 14:47:43 +02:00
Kconfig net: add a generic udp protocol 2020-09-30 16:55:03 -04:00
link_local.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
link_local.h net: Add link-local addressing support 2012-05-23 17:53:08 -05:00
Makefile net: add a generic udp protocol 2020-09-30 16:55:03 -04:00
mdio-mux-uclass.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mdio-uclass.c net: mdio: Fix not calling dev_dbg with a device 2020-09-30 08:53:06 -04:00
net_rand.h net: Get mac address from driver as seed 2017-08-07 15:18:28 -05:00
net.c net: Expose some errors generated in net_init 2020-10-10 16:50:12 -04:00
nfs.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
nfs.h net: nfs: remove superfluous packed attribute 2019-09-04 11:37:19 -05:00
pcap.c net: introduce packet capture support 2019-09-04 11:37:19 -05:00
ping.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ping.h SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
rarp.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
rarp.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sntp.c sntp: use udp framework 2020-09-30 16:55:03 -04:00
tftp.c net: tftp: Fix load_block offset calculation 2020-09-30 16:48:18 -04:00
udp.c net: add a generic udp protocol 2020-09-30 16:55:03 -04:00
wol.c env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
wol.h net: Add new wol command - Wake on LAN 2018-07-02 14:14:20 -05:00