u-boot/net
Michal Suchanek 0736f7aa3b net: eth-uclass: Do not set device on error
eth_get_dev relies on the broken behavior that returns an error but not
the device on which the error happened which gives the caller no
reasonable way to report or handle the error.

In a later patch uclass_first_device_err will be changed to return the
device on error but eth_get_dev stores the returned device pointer
directly in a global state without checking the return value. Unset the
pointer again in the error case.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2022-10-17 21:17:12 -06:00
..
Kconfig net: bootp: Make root path (option 17) length configurable 2022-08-08 10:49:51 -04:00
Makefile bootstd: ethernet: Add a bootdev driver 2022-04-25 10:00:04 -04:00
arp.c Convert CONFIG_NET_RETRY_COUNT to Kconfig 2022-03-18 12:48:17 -04:00
arp.h
bootp.c net: bootp: Make root path (option 17) length configurable 2022-08-08 10:49:51 -04:00
bootp.h
cdp.c Remove #include <timestamp.h> from files which do not need it 2021-09-17 12:10:44 -04:00
cdp.h
dns.c net: move random_port() to dns 2020-06-12 13:17:23 -04:00
dns.h
dsa-uclass.c dm: core: Drop ofnode_is_available() 2022-09-29 16:11:31 -04:00
eth-uclass.c net: eth-uclass: Do not set device on error 2022-10-17 21:17:12 -06:00
eth_bootdev.c bootstd: ethernet: Add a bootdev driver 2022-04-25 10:00:04 -04:00
eth_common.c net: Move network rules to drivers/net 2021-09-04 12:51:47 -04:00
eth_internal.h doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
eth_legacy.c net: uclass: Save generated ethernet MAC addresses to the environment 2022-01-11 10:33:42 +01:00
fastboot.c net: fastboot: make UDP port net: configurable 2022-01-15 18:54:21 +02:00
link_local.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
link_local.h
mdio-mux-uclass.c treewide: use dm_mdio_read/write/reset() wrappers 2022-04-10 08:44:12 +03:00
mdio-uclass.c net: mdio-uclass: add dm_phy_find_by_ofnode() helper 2022-05-04 07:05:51 +02:00
net.c cyclic: Use schedule() instead of WATCHDOG_RESET() 2022-09-18 10:26:33 +02:00
net_rand.h net: Use NDRNG device in srand_mac() 2021-01-19 09:15:02 -05:00
nfs.c common: Drop display_options.h from common header 2022-08-10 13:46:55 -04:00
nfs.h
pcap.c
ping.c net: Do not respond to ICMP_ECHO_REQUEST if we do not have an IP address 2021-01-19 09:15:02 -05:00
ping.h
rarp.c Convert CONFIG_NET_RETRY_COUNT to Kconfig 2022-03-18 12:48:17 -04:00
rarp.h
sntp.c net: sntp: remove CONFIG_TIMESTAMP constraint 2020-12-01 14:12:28 -05:00
tftp.c common: Drop display_options.h from common header 2022-08-10 13:46:55 -04:00
udp.c net: add a generic udp protocol 2020-09-30 16:55:03 -04:00
wol.c
wol.h