U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/1] dwc2 USB controller hangs with lan78xx
@ 2018-06-18 18:56 Andrew Thomas
  2018-06-18 18:56 ` [U-Boot] [PATCH 1/1] " Andrew Thomas
  0 siblings, 1 reply; 16+ messages in thread
From: Andrew Thomas @ 2018-06-18 18:56 UTC (permalink / raw)
  To: u-boot

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(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2018-06-28 12:49 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-18 18:56 [U-Boot] [PATCH 0/1] dwc2 USB controller hangs with lan78xx Andrew Thomas
2018-06-18 18:56 ` [U-Boot] [PATCH 1/1] " Andrew Thomas
2018-06-21  8:37   ` Peter Robinson
2018-06-21 23:05     ` andrew thomas
2018-06-22  6:37       ` Peter Robinson
2018-06-26 12:34     ` Alexander Graf
2018-06-26 12:47       ` Peter Robinson
2018-06-26 15:55         ` Alexander Graf
2018-06-26 16:09           ` Peter Robinson
2018-06-26 18:57       ` andrew thomas
2018-06-27 16:45         ` Alexander Graf
2018-06-27 17:07           ` Tom Rini
2018-06-27 22:47             ` Alexander Graf
2018-06-26 11:36   ` Alexander Graf
2018-06-26 18:28     ` andrew thomas
2018-06-28 12:49   ` [U-Boot] [U-Boot,1/1] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox