Message ID | 20210314051510.26628-13-bmeng.cn@gmail.com |
---|---|
State | Superseded |
Delegated to: | Priyanka Jain |
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=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=uQ62qKLE; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DynrL40Rtz9sRR for <incoming@patchwork.ozlabs.org>; Sun, 14 Mar 2021 16:18:10 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 228FD828F7; Sun, 14 Mar 2021 06:16:09 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="uQ62qKLE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 892F4828E1; Sun, 14 Mar 2021 06:16:05 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 755E2828E1 for <u-boot@lists.denx.de>; Sun, 14 Mar 2021 06:16:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng.cn@gmail.com Received: by mail-pg1-x533.google.com with SMTP id o16so1517597pgu.3 for <u-boot@lists.denx.de>; Sat, 13 Mar 2021 21:16:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Voe+U+B2Qp7elbxyCdNYtRwwWmyvpwfQzXGbPWV4oC8=; b=uQ62qKLE+wFzUbpw4izsRnC68COsNjGz0rYWxj8aYe+7OgBPvc5+agtqjrwokbgJo2 /M9b8iI7SO8sEL9sm3N5gY9uDimZ8Zna8nH09ZZ+g6APm0GNC7zCmYjwik00v+2seG8X MFn4tl0ZcvdpzoTG5A/rWNN2lZXOKvHkuDm+ih5LV9igpKYJ3SSoQW2pW2m8xTNuwIGv dCbVoXR0wsdh+Of9tPHi+5v36y366mkc0JtUsMgErSA65NrtpMVy0QGPf3crVMqgqBo8 gs9mpD0ypw09Oq0HE11Q4uCm24Na7J2ZLY5VO09sU+OoBQbyA/ZoGGHYANv4zvUvc/WZ jTGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Voe+U+B2Qp7elbxyCdNYtRwwWmyvpwfQzXGbPWV4oC8=; b=ahB57QpdKxQ1wYI418RBbCu3mYH7wemFhg04OSqS0YLMBY5gVH0nbFz4+Mbg3OFHBZ 0mUq1Vc1pPqD59othVHW2U0MY5OzSnwVYg11hqYUvvDAsHkRmB8bm+y5C06T4EyeABGQ Cr7xleMAGIBZRlTHXR4Y2omM+qjo8HGjynH44GigeAoIjx3ybaB/nwBxkjIhHOF1poH3 bVN2KXzFYBjU4OQwyCZc38KACZSquR8+Qk++UJRE2MqOENFhFMBhzDotH6ywcDNaqFXm WstIl6gp8gmNL/6x2lh0Sw2HDkXSwDh/5+jg25jT2xhkAzRRC5Tef/ytuHcLuq1Umi7D IV+A== X-Gm-Message-State: AOAM531pTux0nuL0awOnsl174mZrSik9C2IOq4k9C5mY3bdLNGUJZxxm CosrfLyKsS4xNPUOhBnM3Uo= X-Google-Smtp-Source: ABdhPJw7xY6TzECblcLwJgllpyOuKQm4TI6+tbhkOWyG+0WYQo23JIaM5pj4JUa/HScOjoFZSk7lww== X-Received: by 2002:a63:4241:: with SMTP id p62mr18111499pga.453.1615698961125; Sat, 13 Mar 2021 21:16:01 -0800 (PST) Received: from i9-aorus-gtx1080.localdomain (144.168.56.201.16clouds.com. [144.168.56.201]) by smtp.gmail.com with ESMTPSA id 186sm10497309pfb.143.2021.03.13.21.15.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Mar 2021 21:16:00 -0800 (PST) From: Bin Meng <bmeng.cn@gmail.com> To: Priyanka Jain <priyanka.jain@nxp.com>, Ramon Fried <rfried.dev@gmail.com>, Simon Glass <sjg@chromium.org>, u-boot@lists.denx.de Cc: Tom Rini <trini@konsulko.com>, Vladimir Oltean <vladimir.oltean@nxp.com>, Bin Meng <bmeng.cn@gmail.com> Subject: [PATCH v3 12/22] net: tsec: Use dm_eth_phy_connect() directly for the DM case Date: Sun, 14 Mar 2021 13:15:00 +0800 Message-Id: <20210314051510.26628-13-bmeng.cn@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210314051510.26628-1-bmeng.cn@gmail.com> References: <20210314051510.26628-1-bmeng.cn@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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: <https://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> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
ppc: qemu: Add eTSEC support
|
expand
|
diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index ec48689372..f801d020fb 100644 --- a/drivers/net/tsec.c +++ b/drivers/net/tsec.c @@ -707,11 +707,7 @@ static int init_phy(struct tsec_private *priv) tsec_configure_serdes(priv); #if defined(CONFIG_DM_ETH) && defined(CONFIG_DM_MDIO) - if (ofnode_valid(ofnode_find_subnode(dev_ofnode(priv->dev), - "fixed-link"))) - phydev = phy_connect(NULL, 0, priv->dev, priv->interface); - else - phydev = dm_eth_phy_connect(priv->dev); + phydev = dm_eth_phy_connect(priv->dev); #else phydev = phy_connect(priv->bus, priv->phyaddr, priv->dev, priv->interface);