Skip to contentSkip to conversation

dwc2 USB controller hangs with lan78xx

PATCH New Andrew Thomas 4 participants 16 messages Jun 18, 2018 – Jun 28, 2018 USB

lore
Share & tools
lore
#0 lore raw

cover dwc2 USB controller hangs with lan78xx

In testing networking with EFI/u-boot, there is an issue where the dwc2 USB controller will hang -- requiring an USB reset. The issue appears to be the programming of the "Bulk-In Empty Response" in the lan78xx controller. The patch is a suggested fix.

However, I am not familiar enough with neither the lan78xx nor the dwc2 to know whether this is the best, or even most appropriate, fix.

The issue arises readily with EFI/u-boot programs, such
as grub: the uboot EFI code will periodically poll the network adapter to see if it has received a packet. Generally speaking no packet has arrived and the attempt to receive will immediatly hang the dwc2 controller. The console will show this message:

Rx: failed to receive: -5

Interestingly, the issue will not arise with request/response protocols, such as u-boot's dhcp command.

Andrew Thomas (1):
dwc2 USB controller hangs with lan78xx

 drivers/usb/eth/lan78xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 dwc2 USB controller hangs with lan78xx

This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the combination in use on the Raspberry Pi Model 3 B+.

When the host attempts to receive a packet, but a packet has not arrived, the lan78xx controller responds by setting BIR (Bulk-In Empty Response) to NAK. Unfortunately, this hangs the USB controller and requires the USB controller to be reset.

The fix proposed is to have the lan78xx controller respond by setting BIR to ZLP.

---
 drivers/usb/eth/lan78xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/eth/lan78xx.c +1 -1
index c5ff379..e8ee665 100644
@@ -296,7 +296,7 @@ static int lan78xx_basic_reset(struct usb_device *udev,
 	ret = lan7x_read_reg(udev, LAN78XX_USB_CFG0, &val);
 	if (ret)
 		return ret;
-	val |= LAN78XX_USB_CFG0_BIR;
+	val &= ~LAN78XX_USB_CFG0_BIR;
 	return lan7x_write_reg(udev, LAN78XX_USB_CFG0, val);
 }
 
Signature · 1 line
1.8.3.1
#2 lore raw

PATCH 1/1 dwc2 USB controller hangs with lan78xx

Quoted 10 lines · Andrew Thomas

This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the combination in use on the Raspberry Pi Model 3 B+.

When the host attempts to receive a packet, but a packet has not arrived, the lan78xx controller responds by setting BIR (Bulk-In Empty Response) to NAK. Unfortunately, this hangs the USB controller and requires the USB controller to be reset.

Quoted 4 lines

The fix proposed is to have the lan78xx controller respond by setting BIR to ZLP.

Tested on the RPi 3B+ and certainly improves this situation a number of Fedora users have seen.

Quoted 24 lines
---
 drivers/usb/eth/lan78xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/eth/lan78xx.c +1 -2
index c5ff379..e8ee665 100644
@@ -296,7 +296,7 @@ static int lan78xx_basic_reset(struct usb_device *udev,
        ret = lan7x_read_reg(udev, LAN78XX_USB_CFG0, &val);
        if (ret)
                return ret;
-       val |= LAN78XX_USB_CFG0_BIR;
+       val &= ~LAN78XX_USB_CFG0_BIR;
        return lan7x_write_reg(udev, LAN78XX_USB_CFG0, val);
 }
 
--

1.8.3.1

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

#3 lore raw

PATCH 1/1 dwc2 USB controller hangs with lan78xx

Quoted 11 lines · Peter Robinson
Quoted 10 lines · Andrew Thomas

This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the combination in use on the Raspberry Pi Model 3 B+.

When the host attempts to receive a packet, but a packet has not arrived, the lan78xx controller responds by setting BIR (Bulk-In Empty Response) to NAK. Unfortunately, this hangs the USB controller and requires the USB controller to be reset.

Quoted 8 lines
Quoted 4 lines

The fix proposed is to have the lan78xx controller respond by setting BIR to ZLP.

Tested on the RPi 3B+ and certainly improves this situation a number of Fedora users have seen.

Thanks for testing!

One odd, and inexplicable, issue I have encountered is that some VGA monitors will cause the dwc2/lan78xx combination to fail.

I have a DVI based monitor, which causes the failure. Whereas an HDMI monitor works fine. I hesitate to guess why this is.

For the monitor which causes problems, I am using a config file with:

hdmi_ignore_edid=0xa5000080
hdmi_group=2
hdmi_mode=85

With this config, I see no issues with the troublesome monitor.

It's just bizzarre :-)

Quoted 25 lines
Quoted 25 lines
---
  drivers/usb/eth/lan78xx.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/eth/lan78xx.c +1 -2
index c5ff379..e8ee665 100644
@@ -296,7 +296,7 @@ static int lan78xx_basic_reset(struct usb_device *udev,
         ret = lan7x_read_reg(udev, LAN78XX_USB_CFG0, &val);
         if (ret)
                 return ret;
-       val |= LAN78XX_USB_CFG0_BIR;
+       val &= ~LAN78XX_USB_CFG0_BIR;
         return lan7x_write_reg(udev, LAN78XX_USB_CFG0, val);
  }
 
--

1.8.3.1

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

#4 lore raw

PATCH 1/1 dwc2 USB controller hangs with lan78xx

Quoted 21 lines
Quoted 13 lines
Quoted 13 lines

This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the combination in use on the Raspberry Pi Model 3 B+.

When the host attempts to receive a packet, but a packet has not arrived, the lan78xx controller responds by setting BIR (Bulk-In Empty Response) to NAK. Unfortunately, this hangs the USB controller and requires the USB controller to be reset.

The fix proposed is to have the lan78xx controller respond by setting BIR to ZLP.

Quoted 6 lines
Quoted 1 line

Tested on the RPi 3B+ and certainly improves this situation a number of Fedora users have seen.

Quoted 8 lines

Thanks for testing!

One odd, and inexplicable, issue I have encountered is that some VGA monitors will cause the dwc2/lan78xx combination to fail.

I have a DVI based monitor, which causes the failure. Whereas an HDMI monitor works fine. I hesitate to guess why this is.

I have neither a DVI or VGA monitor, my guess with the later some issue with the converter, from the little experience I've had they all seem to be terrible. It's also likely to be a different problem to this.

Quoted 40 lines

For the monitor which causes problems, I am using a config file with:

hdmi_ignore_edid=0xa5000080
hdmi_group=2
hdmi_mode=85

With this config, I see no issues with the troublesome monitor.

It's just bizzarre :-)

Quoted 26 lines
Quoted 26 lines
---
  drivers/usb/eth/lan78xx.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/eth/lan78xx.c +1 -2
index c5ff379..e8ee665 100644
@@ -296,7 +296,7 @@ static int lan78xx_basic_reset(struct usb_device
 *udev,
         ret = lan7x_read_reg(udev, LAN78XX_USB_CFG0, &val);
         if (ret)
                 return ret;
-       val |= LAN78XX_USB_CFG0_BIR;
+       val &= ~LAN78XX_USB_CFG0_BIR;
         return lan7x_write_reg(udev, LAN78XX_USB_CFG0, val);
  }
 
--

1.8.3.1

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

#13 lore raw

PATCH 1/1 dwc2 USB controller hangs with lan78xx

In reply to Andrew Thomas
Quoted 10 lines · Andrew Thomas

This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the combination in use on the Raspberry Pi Model 3 B+.

When the host attempts to receive a packet, but a packet has not arrived, the lan78xx controller responds by setting BIR (Bulk-In Empty Response) to NAK. Unfortunately, this hangs the USB controller and requires the USB controller to be reset.

Quoted 4 lines

The fix proposed is to have the lan78xx controller respond by setting BIR to ZLP.

So why does this work for Linux? I can see that Linux also sets the BIR flag, so why don't we see the hang there?

Alex

Quoted 17 lines
---
  drivers/usb/eth/lan78xx.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/eth/lan78xx.c +1 -1
index c5ff379..e8ee665 100644
@@ -296,7 +296,7 @@ static int lan78xx_basic_reset(struct usb_device *udev,
  	ret = lan7x_read_reg(udev, LAN78XX_USB_CFG0, &val);
  	if (ret)
  		return ret;
-	val |= LAN78XX_USB_CFG0_BIR;
+	val &= ~LAN78XX_USB_CFG0_BIR;
  	return lan7x_write_reg(udev, LAN78XX_USB_CFG0, val);
  }
 
#5 lore raw

PATCH 1/1 dwc2 USB controller hangs with lan78xx

In reply to Peter Robinson
Quoted 11 lines · Peter Robinson
Quoted 10 lines · Andrew Thomas

This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the combination in use on the Raspberry Pi Model 3 B+.

When the host attempts to receive a packet, but a packet has not arrived, the lan78xx controller responds by setting BIR (Bulk-In Empty Response) to NAK. Unfortunately, this hangs the USB controller and requires the USB controller to be reset.

Quoted 8 lines
Quoted 4 lines

The fix proposed is to have the lan78xx controller respond by setting BIR to ZLP.

Tested on the RPi 3B+ and certainly improves this situation a number of Fedora users have seen.

What exactly have you tested?

Even with this patch, I am not reliably to reliably boot into grub. It almost seems as if the packet buffer keeps getting overwritten by newer packets so that by the time we process the old ones, the ones we wanted to see are gone.

Alex

#6 lore raw

PATCH 1/1 dwc2 USB controller hangs with lan78xx

Quoted 22 lines
Quoted 13 lines
Quoted 13 lines

This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the combination in use on the Raspberry Pi Model 3 B+.

When the host attempts to receive a packet, but a packet has not arrived, the lan78xx controller responds by setting BIR (Bulk-In Empty Response) to NAK. Unfortunately, this hangs the USB controller and requires the USB controller to be reset.

The fix proposed is to have the lan78xx controller respond by setting BIR to ZLP.

Quoted 6 lines
Quoted 1 line

Tested on the RPi 3B+ and certainly improves this situation a number of Fedora users have seen.

Quoted 6 lines

What exactly have you tested?

Even with this patch, I am not reliably to reliably boot into grub. It almost seems as if the packet buffer keeps getting overwritten by newer packets so that by the time we process the old ones, the ones we wanted to see are gone.

Booting to grub and then a local system, it's seemed improved in terms of stability for me and a few other users, at least was more consistent in getting to grub without "Rx: failed to receive: -5" but then from the various testing different Fedora users have seen prior to this patch it seems that the issue is very network/cable/environment specific. I'm fairly certain that this patch doesn't fix the problem but it at least appears from current reports to improve the situation for some users.

Peter

#7 lore raw

PATCH 1/1 dwc2 USB controller hangs with lan78xx

Quoted 26 lines · Peter Robinson
Quoted 20 lines
Quoted 10 lines
Quoted 10 lines

This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the combination in use on the Raspberry Pi Model 3 B+.

When the host attempts to receive a packet, but a packet has not arrived, the lan78xx controller responds by setting BIR (Bulk-In Empty Response) to NAK. Unfortunately, this hangs the USB controller and requires the USB controller to be reset.

Quoted 8 lines
Quoted 4 lines

The fix proposed is to have the lan78xx controller respond by setting BIR to ZLP.

Tested on the RPi 3B+ and certainly improves this situation a number of Fedora users have seen.

Quoted 6 lines

What exactly have you tested?

Even with this patch, I am not reliably to reliably boot into grub. It almost seems as if the packet buffer keeps getting overwritten by newer packets so that by the time we process the old ones, the ones we wanted to see are gone.

Quoted 8 lines

Booting to grub and then a local system, it's seemed improved in terms of stability for me and a few other users, at least was more consistent in getting to grub without "Rx: failed to receive: -5" but then from the various testing different Fedora users have seen prior to this patch it seems that the issue is very network/cable/environment specific. I'm fairly certain that this patch doesn't fix the problem but it at least appears from current reports to improve the situation for some users.

Improve, yes, but not solve it to a point where it's fully usable. And I don't think we have a full grasp on what's broken yet.

What I'm seeing here is that booting grub stalls within early bootup (where it loads modules) until I press any key on serial. Pressing a key on a USB keyboard does not help.

Given that there are no interrupts enabled on the RPi at this point, I can only think of caches as the culprit for this breakage. But why did it work with the normal 3B then?

Alex

#8 lore raw

PATCH 1/1 dwc2 USB controller hangs with lan78xx

Quoted 42 lines · Alexander Graf
Quoted 31 lines · Peter Robinson
Quoted 23 lines
Quoted 14 lines
Quoted 14 lines

This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the combination in use on the Raspberry Pi Model 3 B+.

When the host attempts to receive a packet, but a packet has not arrived, the lan78xx controller responds by setting BIR (Bulk-In Empty Response) to NAK. Unfortunately, this hangs the USB controller and requires the USB controller to be reset.

The fix proposed is to have the lan78xx controller respond by setting BIR to ZLP.

Quoted 6 lines
Quoted 1 line

Tested on the RPi 3B+ and certainly improves this situation a number of Fedora users have seen.

Quoted 7 lines

What exactly have you tested?

Even with this patch, I am not reliably to reliably boot into grub. It almost seems as if the packet buffer keeps getting overwritten by newer packets so that by the time we process the old ones, the ones we wanted to
see are gone.

Quoted 8 lines

Booting to grub and then a local system, it's seemed improved in terms of stability for me and a few other users, at least was more consistent in getting to grub without "Rx: failed to receive: -5" but then from the various testing different Fedora users have seen prior to this patch it seems that the issue is very network/cable/environment specific. I'm fairly certain that this patch doesn't fix the problem but it at least appears from current reports to improve the situation for some users.

Quoted 2 lines

Improve, yes, but not solve it to a point where it's fully usable. And I don't think we have a full grasp on what's broken yet.

I completely agree, it makes the problem go away for a number of users so it's not completely terrible and less people bothering me is a good start IMO even if it's not the final fix.

Quoted 7 lines

What I'm seeing here is that booting grub stalls within early bootup (where it loads modules) until I press any key on serial. Pressing a key on a USB keyboard does not help.

Given that there are no interrupts enabled on the RPi at this point, I can only think of caches as the culprit for this breakage. But why did it work with the normal 3B then?

Different USB NIC, maybe the usb3 interface has a different impact on the dwc2 interface. The lan78xx driver seemed to have had little use in general before it landed in the 3B+ and had numerous issues in the Linux driver that have been quickly addressed so I figured that the u-boot driver is probably just as terrible. Due to other commitments I've had little time to investigate that theory further though as my understanding of low level usb isn't huge.

Peter

#14 lore raw

PATCH 1/1 dwc2 USB controller hangs with lan78xx

In reply to Alexander Graf
Quoted 11 lines · Alexander Graf
Quoted 10 lines · Andrew Thomas

This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the combination in use on the Raspberry Pi Model 3 B+.

When the host attempts to receive a packet, but a packet has not arrived, the lan78xx controller responds by setting BIR (Bulk-In Empty Response) to NAK. Unfortunately, this hangs the USB controller and requires the USB controller to be reset.

Quoted 7 lines
Quoted 4 lines

The fix proposed is to have the lan78xx controller respond by setting BIR to ZLP.

So why does this work for Linux? I can see that Linux also sets the BIR flag, so why don't we see the hang there?

Although I proposed a fix to the lan78xx controller, I didn't mean to identify it as the culprit :-)

I don't understand the interaction of the dwc2 and lan78xx controller.

Maybe BIR works for linux, because the dwc2 controller sets up the USB host interface "differently"? It's just a guess...

Maybe we can coax the lan78xx driver writer into looking into this issue? [CCing Yuiko Oshino.]

Andrew

Quoted 23 lines

Alex

Quoted 17 lines
---
  drivers/usb/eth/lan78xx.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/eth/lan78xx.c +1 -1
index c5ff379..e8ee665 100644
@@ -296,7 +296,7 @@ static int lan78xx_basic_reset(struct usb_device 
 *udev,
      ret = lan7x_read_reg(udev, LAN78XX_USB_CFG0, &val);
      if (ret)
          return ret;
-    val |= LAN78XX_USB_CFG0_BIR;
+    val &= ~LAN78XX_USB_CFG0_BIR;
      return lan7x_write_reg(udev, LAN78XX_USB_CFG0, val);
  }
#9 lore raw

PATCH 1/1 dwc2 USB controller hangs with lan78xx

In reply to Alexander Graf
Quoted 19 lines · Alexander Graf
Quoted 18 lines · Peter Robinson
Quoted 10 lines · Andrew Thomas

This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the combination in use on the Raspberry Pi Model 3 B+.

When the host attempts to receive a packet, but a packet has not arrived, the lan78xx controller responds by setting BIR (Bulk-In Empty Response) to NAK. Unfortunately, this hangs the USB controller and requires the USB controller to be reset.

Quoted 4 lines

The fix proposed is to have the lan78xx controller respond by setting BIR to ZLP.

Quoted 7 lines
Quoted 2 lines

Tested on the RPi 3B+ and certainly improves this situation a number of Fedora users have seen.

What exactly have you tested?

Even with this patch, I am not reliably to reliably boot into grub.

Can you say which version of grub? I am using the gcdaa64.efi binary in this RPM:

http://yum.oracle.com/repo/OracleLinux/OL7/latest/aarch64/getPackage/grub2-efi-aa64-cdboot-2.02-0.65.0.8.el7_4.2.aarch64.rpm

The same binary is named EFI/BOOT/grubaa64.efi on the "ISO" CD/DVD install image -- the point, for me, of getting the lan controller "functioning"
is to allow network kickstart install.

I have had a peculiar USB/lan problem with a DVI monitor attached; while a different brand
HDMI monitor worked OK.

FWIW: I use fairly recent "firmware":

https://github.com/raspberrypi/firmware
eeaaf5e2b5aee29f31e989c0dddd186fb68b2144

And in the u-boot configuration I have:

CONFIG_OF_BOARD=y
# CONFIG_OF_EMBED is not set

As an aside, I did post [to this list] a related fix ARP for efi networking...

Quoted 4 lines

It almost seems as if the packet buffer keeps getting overwritten by newer packets so that by the time we process the old ones, the ones we wanted to see are gone.

From the polling structure of the EFI networking code, it seems
inevitable that some packets would be lost on a busy network??

I have to admit that I had both the Pi and dhcp/tftp server on a "silent" lan.

I should also mention that while trying to debug this issue, the lan driver would occasionally receive what appeared to be bogus frames -- with packet
sizes which made absolutely no sense as jumbo frames are not enabled on the switch to which the PI is attached...

#10 lore raw

PATCH 1/1 dwc2 USB controller hangs with lan78xx

Quoted 24 lines · andrew thomas
Quoted 23 lines · Alexander Graf
Quoted 20 lines · Peter Robinson
Quoted 10 lines · Andrew Thomas

This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the combination in use on the Raspberry Pi Model 3 B+.

When the host attempts to receive a packet, but a packet has not arrived, the lan78xx controller responds by setting BIR (Bulk-In Empty Response) to NAK. Unfortunately, this hangs the USB controller and requires the USB controller to be reset.

Quoted 4 lines

The fix proposed is to have the lan78xx controller respond by setting BIR to ZLP.

Tested on the RPi 3B+ and certainly improves this situation a number of Fedora users have seen.

Quoted 5 lines
Quoted 3 lines

What exactly have you tested?

Even with this patch, I am not reliably to reliably boot into grub.

Can you say which version of grub?

I actually see the same effect on an old RPi3 B, so it's not lan7x specific. We also have the exact same fix for the old 100Mbit/s LAN adapter, so I think this fix is certainly moving us into the right direction.

Tom, can you please pull it in for 2018.07 still?

Thanks!

Alex

#11 lore raw

PATCH 1/1 dwc2 USB controller hangs with lan78xx

Quoted 31 lines · Alexander Graf
Quoted 24 lines · andrew thomas
Quoted 23 lines · Alexander Graf
Quoted 20 lines · Peter Robinson
Quoted 10 lines · Andrew Thomas

This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the combination in use on the Raspberry Pi Model 3 B+.

When the host attempts to receive a packet, but a packet has not arrived, the lan78xx controller responds by setting BIR (Bulk-In Empty Response) to NAK. Unfortunately, this hangs the USB controller and requires the USB controller to be reset.

Quoted 4 lines

The fix proposed is to have the lan78xx controller respond by setting BIR to ZLP.

Tested on the RPi 3B+ and certainly improves this situation a number of Fedora users have seen.

Quoted 5 lines
Quoted 3 lines

What exactly have you tested?

Even with this patch, I am not reliably to reliably boot into grub.

Can you say which version of grub?

Quoted 7 lines

I actually see the same effect on an old RPi3 B, so it's not lan7x specific. We also have the exact same fix for the old 100Mbit/s LAN adapter, so I think this fix is certainly moving us into the right direction.

Tom, can you please pull it in for 2018.07 still?

Do you have anything else Pi-related to go in? If not, I'll grab it directly, otherwise send me a PR, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180627/5dee0f77/attachment.sig>
#12 lore raw

PATCH 1/1 dwc2 USB controller hangs with lan78xx

Quoted 36 lines · Tom Rini
Quoted 35 lines · Alexander Graf
Quoted 24 lines · andrew thomas
Quoted 23 lines · Alexander Graf
Quoted 20 lines · Peter Robinson
Quoted 10 lines · Andrew Thomas

This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the combination in use on the Raspberry Pi Model 3 B+.

When the host attempts to receive a packet, but a packet has not arrived, the lan78xx controller responds by setting BIR (Bulk-In Empty Response) to NAK. Unfortunately, this hangs the USB controller and requires the USB controller to be reset.

Quoted 4 lines

The fix proposed is to have the lan78xx controller respond by setting BIR to ZLP.

Tested on the RPi 3B+ and certainly improves this situation a number of Fedora users have seen.

Quoted 5 lines
Quoted 3 lines

What exactly have you tested?

Even with this patch, I am not reliably to reliably boot into grub.

Can you say which version of grub?

I actually see the same effect on an old RPi3 B, so it's not lan7x specific. We also have the exact same fix for the old 100Mbit/s LAN adapter, so I think this fix is certainly moving us into the right direction.

Quoted 6 lines
Quoted 3 lines

Tom, can you please pull it in for 2018.07 still?

Do you have anything else Pi-related to go in? If not, I'll grab it directly, otherwise send me a PR, thanks!

It's the only patch I'd have left for this release. Please just apply it directly.

Thanks!

Alex

#15 lore raw

PATCH 1/1 dwc2 USB controller hangs with lan78xx

In reply to Andrew Thomas
Quoted 10 lines · Andrew Thomas

This bug is the combination of dwc2 USB controller and lan78xx USB ethernet controller, which is the combination in use on the Raspberry Pi Model 3 B+.

When the host attempts to receive a packet, but a packet has not arrived, the lan78xx controller responds by setting BIR (Bulk-In Empty Response) to NAK. Unfortunately, this hangs the USB controller and requires the USB controller to be reset.

Quoted 6 lines

The fix proposed is to have the lan78xx controller respond by setting BIR to ZLP.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180628/82ee4dba/attachment.sig>