From patchwork Mon Jun 18 18:56:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: andrew thomas X-Patchwork-Id: 931156 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=oracle.com header.i=@oracle.com header.b="Ho/BWqVD"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 418gKd00b7z9s2L for ; Tue, 19 Jun 2018 04:56:04 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 8F090C21F45; Mon, 18 Jun 2018 18:56:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_PASS, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 8162BC21DED; Mon, 18 Jun 2018 18:55:57 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7EABEC21DED; Mon, 18 Jun 2018 18:55:17 +0000 (UTC) Received: from aserp2120.oracle.com (aserp2120.oracle.com [141.146.126.78]) by lists.denx.de (Postfix) with ESMTPS id DC560C21DDC for ; Mon, 18 Jun 2018 18:55:16 +0000 (UTC) Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5IIs1as013495 for ; Mon, 18 Jun 2018 18:55:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2017-10-26; bh=sFbBjjX/EtTC/22uZmFtnRmjHfgipNqVC11xpJuwQWM=; b=Ho/BWqVDMHNlD03awL/+J4/VSIX892o17RCI4occJkCeZEQ21b5/nMNgBWFpg4tjjn2/ vGcM8HwD++/SZAtC1OHiQJzrofrGzyAIgrqqREQx7R++6BG+5XNaZRIARxcFaJhFPppo SPcJQiQKgy2cGxf3nDYCIiEBuLMHBiEmgEOctQ6fnUvc67p64BCNhLxVpQlrgZWGWVOc NAujaVleBuLiI8MNa9nsMgCB1NaYMnCPPBznntMCK/XI1AbIprNpk49OObwRZVFN+U+C 7Il+AzuVMycxwmnAsph4NZUdXtoK0Rcqs6AIVW7eRV6MHLVyd5XljYhHFVY87WXpETr6 +A== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2jmtgwnbk4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 18 Jun 2018 18:55:14 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w5IItEqd000885 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 18 Jun 2018 18:55:14 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w5IItD55007681 for ; Mon, 18 Jun 2018 18:55:13 GMT Received: from serenity.us.oracle.com (/10.211.44.116) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 18 Jun 2018 11:55:13 -0700 From: Andrew Thomas To: u-boot@lists.denx.de Date: Mon, 18 Jun 2018 11:56:05 -0700 Message-Id: <1529348166-130059-1-git-send-email-andrew.thomas@oracle.com> X-Mailer: git-send-email 1.8.3.1 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8928 signatures=668702 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=808 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806180217 X-Mailman-Approved-At: Mon, 18 Jun 2018 18:55:56 +0000 Cc: Andrew Thomas Subject: [U-Boot] [PATCH 0/1] dwc2 USB controller hangs with lan78xx X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "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(-)