u-boot-brain/test/dm
Thomas RIENOESSL a735e6e9d6 net: explicitly assign errno to return code in case of network failure
When dealing with two ethernet ports and having "netretry" set
to "once", it could occur that the connection (e.g. an ARP
request) failed, hence the status of the netloop was
"NETLOOP_FAIL". Due to the setting of "netretry", the network
logic would then switch to the other network interface,
assigning "ret" with the return value of "net_start_again()".
If this call succeeded we would return 0 (i.e. success) to
the caller when in reality the network action failed.

Signed-off-by: Thomas RIENOESSL <thomas.rienoessl@bachmann.info>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2019-01-24 11:35:28 -06:00
..
adc.c dm: adc: add uclass's mask and conversion helpers 2018-11-20 12:35:25 -05:00
audio.c dm: sound: Create a uclass for audio codecs 2018-12-13 16:32:49 -07:00
axi.c test: Add AXI test 2018-08-11 08:11:02 +02:00
blk.c test: dm: blk: Correct blk_base test case 2018-11-14 09:16:27 -08:00
board.c test: Add tests for board uclass 2018-09-29 11:49:35 -06:00
bootcount.c test: bootcount: add bootcount-uclass test 2019-01-14 17:41:23 -05:00
bus.c test: dm: core: Add test case for uclass driver's child_post_probe() 2018-11-14 09:16:27 -08:00
clk.c clk: add clk_valid() 2018-08-03 19:53:10 -04:00
core.c dm: core: Add a function to find the first inactive child 2018-10-09 04:40:27 -06:00
cpu.c test: Add tests for CPU uclass 2018-09-18 08:12:21 -06:00
dma.c test: dma: add dma-uclass test 2018-12-07 08:13:45 -05:00
eth.c net: explicitly assign errno to return code in case of network failure 2019-01-24 11:35:28 -06:00
firmware.c dm: test: Add "/firmware" node scan test 2018-09-29 11:49:35 -06:00
gpio.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
hwspinlock.c dm: Add Hardware Spinlock class 2018-12-06 23:26:32 -05:00
i2c.c dm: sandbox: i2c: Use new emulator parent uclass 2018-11-29 09:30:05 -07:00
i2s.c dm: sound: Create a uclass for i2s 2018-12-13 16:32:49 -07:00
Kconfig test: Move the unit tests to their own menu 2015-05-21 09:16:17 -04:00
led.c sandbox: led: use new function to configure default state 2018-08-10 10:27:32 -04:00
mailbox.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile test: bootcount: add bootcount-uclass test 2019-01-14 17:41:23 -05:00
misc.c misc: Update read() and write() methods to return bytes xfered 2018-11-20 19:14:22 -07:00
mmc.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ofnode.c dm: core: Update ofnode to read binman-style flash entry 2018-10-09 04:40:27 -06:00
osd.c video_osd: Add osd sandbox driver and tests 2018-09-28 18:26:52 +02:00
panel.c panel: Expand the backlight support 2018-10-09 04:40:27 -06:00
pci.c test: dm: pci: Add cases for finding next PCI capability APIs 2018-11-14 09:16:28 -08:00
phy.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmic.c sandbox: tests: Add tests for mc34708 PMIC device 2018-05-18 08:27:26 +02:00
power-domain.c dm: power-domain: query power domain after get device 2018-08-06 11:52:19 +02:00
pwm.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ram.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
regmap.c test: dm: regmap: Fix the long test delay 2019-01-14 17:47:13 -07:00
regulator.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
remoteproc.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
reset.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rtc.c dm: sandbox: i2c: Use new emulator parent uclass 2018-11-29 09:30:05 -07:00
serial.c dm: serial: Adjust serial_getinfo() to use proper API 2019-01-14 17:47:13 -07:00
sf.c sandbox: Drop the deprecated 'sb' command 2018-11-26 08:25:35 -05:00
smem.c test: smem: add basic smem test 2018-07-19 17:03:28 -04:00
sound.c dm: sound: Create a uclass for sound 2018-12-13 16:32:49 -07:00
spi.c dm: spi: Update sandbox SPI emulation driver to use ofnode 2018-07-09 09:11:00 -06:00
spmi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
syscon.c syscon: dm: Add a new method to get a regmap from DTS 2018-12-07 16:31:45 +01:00
sysreset.c sandbox: sysreset: Update to support power-on reset 2018-12-05 06:01:34 -07:00
tee.c test: tee: fix resource leak in dm_test_tee() 2018-11-01 10:02:43 -04:00
test-driver.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
test-fdt.c dm: core: Add a function to read into a unsigned int 2018-12-13 16:32:49 -07:00
test-main.c dm: test: Fix typo in test-main comment 2018-08-24 13:20:19 -04:00
test-uclass.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
timer.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
usb.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
video.c dm: video: fix test failures with enabled default TrueType font 2018-12-29 11:28:59 +01:00
virtio.c test: dm: virtio: Add test cases for virtio uclass 2018-11-14 09:16:28 -08:00
wdt.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00