]> git.baikalelectronics.ru Git - uboot.git/commit
net: Only access network devices after init
authorAlexander Graf <agraf@suse.de>
Thu, 15 Mar 2018 14:07:09 +0000 (15:07 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 22 Mar 2018 20:05:31 +0000 (15:05 -0500)
commit965441a361eaad37d0e5c33becefa24aab1e3fa8
tree1f3f273f3dbdce03efc5475e7a0150ab413f4b06
parent866b367cd04e463f1da1ee3e3cc538c03b1ea1ef
net: Only access network devices after init

In the efi_loader main loop we call eth_rx() occasionally. This rx function
might end up calling into devices that haven't been initialized yet,
potentially resulting in a lot of transfer timeouts.

Instead, let's make sure the ethernet device is actually initialized before
reading from or writing to it.

Signed-off-by: Alexander Graf <agraf@suse.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
net/eth-uclass.c