]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[snp] Retry initialisation if link is reported as down
authorMichael Brown <mcb30@ipxe.org>
Thu, 18 Jun 2020 23:18:22 +0000 (00:18 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 18 Jun 2020 23:18:22 +0000 (00:18 +0100)
commit770a7bd43aa236fe415e0643e2f452e1ad191596
treed190c0f4559b8f909c67c7bbe207dafc149faf2d
parent7f2006a9ada4a326ac904a8719170227c8860e21
[snp] Retry initialisation if link is reported as down

Some devices (observed with a Getac RX10 tablet and docking station
containing an embedded AX88179 USB NIC) seem to be capable of
detecting link state only during the call to Initialize(), and will
occasionally erroneously report that the link is down for the first
few such calls.

Work around these devices by retrying the Initialize() call multiple
times, terminating early if a link is detected.  The eventual absence
of a link is treated as a non-fatal error, since it is entirely
possible that the link really is down.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/efi/snpnet.c