diff options
author | Andrew Thomas <andrew.thomas@oracle.com> | 2018-06-22 02:21:01 +0300 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2018-07-26 22:08:20 +0300 |
commit | f25ddca16c96f13c3f7cf7968566d1ff03917012 (patch) | |
tree | 71eee7081970adc24a12fa617c3eb0507ea7e0fe /lib | |
parent | 6ab12830921c1de4eb90a0d471bf5f4677af734c (diff) | |
download | u-boot-f25ddca16c96f13c3f7cf7968566d1ff03917012.tar.xz |
initialize net_mode.if_type
if_type is not correctly initialized
Failure to initialize if_type means that grub2/efinet sends
a bogus arp request. It therefore gets no response. On Raspberry Pi 3B+
this leads to a pause at:
lan78xx_eth Waiting for PHY auto negotiation to complete....... done
lan78xx_eth Waiting for PHY auto negotiation to complete....... done
Signed-off-by: Andrew Thomas <andrew.thomas@oracle.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_loader/efi_net.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_net.c b/lib/efi_loader/efi_net.c index e1139501d1..5a3d7be86c 100644 --- a/lib/efi_loader/efi_net.c +++ b/lib/efi_loader/efi_net.c @@ -361,6 +361,7 @@ efi_status_t efi_net_register(void) memcpy(netobj->net_mode.current_address.mac_addr, eth_get_ethaddr(), 6); netobj->net_mode.hwaddr_size = ARP_HLEN; netobj->net_mode.max_packet_size = PKTSIZE; + netobj->net_mode.if_type = ARP_ETHER; netobj->pxe.mode = &netobj->pxe_mode; if (dhcp_ack) |