Message ID | 1529670334-21974-3-git-send-email-jjhiblot@ti.com |
---|---|
State | Superseded |
Delegated to: | Lukasz Majewski |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="Z4CxoZyr"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41ByVN17jtz9s3C for <incoming@patchwork.ozlabs.org>; Fri, 22 Jun 2018 22:26:36 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id C0DCAC21FD5; Fri, 22 Jun 2018 12:26:05 +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=T_DKIM_INVALID 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 EE905C21F2F; Fri, 22 Jun 2018 12:25:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 841D7C21C2F; Fri, 22 Jun 2018 12:25:44 +0000 (UTC) Received: from lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77]) by lists.denx.de (Postfix) with ESMTPS id EB26BC21C2C for <u-boot@lists.denx.de>; Fri, 22 Jun 2018 12:25:43 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w5MCPdjT026251; Fri, 22 Jun 2018 07:25:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1529670339; bh=dJ6iS2q4JLzLi3JTmk+lZvqSsStV2ML7cXFWveXOpRI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Z4CxoZyrExVt1U6KUtuG2RiCKD9XNs1/B9oVt7GtkQMQ11IOzl9lhJFsw5rGnAMqA CtWktNXFLsZSVpqbdne6DkU1g3gJWyojQucrxaFVBzG6Jo4sdPsmpADZ1g1RnMOvVs r/iU/g2UXPw/mgmjhnX16adj/p5L9Xlt2iBrdE/A= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5MCPdEL012109; Fri, 22 Jun 2018 07:25:39 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 22 Jun 2018 07:25:39 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Fri, 22 Jun 2018 07:25:39 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5MCPcwM004668; Fri, 22 Jun 2018 07:25:39 -0500 From: Jean-Jacques Hiblot <jjhiblot@ti.com> To: <marex@denx.de> Date: Fri, 22 Jun 2018 14:25:29 +0200 Message-ID: <1529670334-21974-3-git-send-email-jjhiblot@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529670334-21974-1-git-send-email-jjhiblot@ti.com> References: <1529670334-21974-1-git-send-email-jjhiblot@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: trini@konsulko.com, Joe Hershberger <joe.hershberger@ni.com>, u-boot@lists.denx.de, sr@denx.de Subject: [U-Boot] [PATCH v3 2/7] net: eth-uclass: Fix for DM USB ethernet support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
Fixes/Addition to use the USB Ethernet gadget with the DWC3 gadget controller
|
expand
|
diff --git a/net/eth-uclass.c b/net/eth-uclass.c index e4b4922..3a5217a 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -312,7 +312,8 @@ void eth_halt(void) eth_get_ops(current)->stop(current); priv = current->uclass_priv; - priv->state = ETH_STATE_PASSIVE; + if (priv) + priv->state = ETH_STATE_PASSIVE; } int eth_is_active(struct udevice *dev)