From patchwork Sun Sep 13 00:28:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1362992 X-Patchwork-Delegate: trini@ti.com Return-Path: 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=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com 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=fGNnN7T/; 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 4Bpr2h5YZhz9sT6 for ; Sun, 13 Sep 2020 10:29:00 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6903B8230E; Sun, 13 Sep 2020 02:28:35 +0200 (CEST) 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="fGNnN7T/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8965F822FC; Sun, 13 Sep 2020 02:28:31 +0200 (CEST) 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-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) (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 250C4822B5 for ; Sun, 13 Sep 2020 02:28:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qk1-x742.google.com with SMTP id o16so13592735qkj.10 for ; Sat, 12 Sep 2020 17:28:28 -0700 (PDT) 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=Jv7YOMTiZnqPPOuiHhSIJ1TeCYJ0xU1Mg+iypFHKqRs=; b=fGNnN7T/hYyiO7w5rkmlArgULRZR3+3eFscAvAFOVgMP73U7FJvBKrMHRzFO0TcL5N QYcG/pZpFBUs/xrn3M/f2y0xnWKOoPUa/QL89cS+NKFHE5jcdIXQT8aTI3VqoT9vDTFP H/2W9/1R+7hmJEjqS7gKPwEY+TpaVOwOB3DI1DXwXdV3nkMZfMlDxhAJ7GgfBhtuagkx XpQrV0V5WMKn8eScOaJYDjYXxfPpNnBBbMyYIDPzHTNTVuu+FCss53cHNCAmwNDBA+DA QFICPoHFFEzDV6pEdfls3tJ6OmsExu71FM3E/iZCGfD5rlIn7GsyDkjfCYm9oeiLFdms kSeA== 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=Jv7YOMTiZnqPPOuiHhSIJ1TeCYJ0xU1Mg+iypFHKqRs=; b=Emi9NEZEk5KQSEQaS56FOi9Uhtc3rNKT8yNFoI41QtUX/pgkOIeX3pbTkGJqzu1VIK v/5ENtondcVij3BXLidHSYyg8e5P/9NGF8/5Pcn5l7iPuA/hohUMc85/edrJoB6e9Mh4 Nxk0CKkIynklA1pNivjf+4jHxYyJzH4xAZjw+2P+/fa7R78jtCHpawGqNRJfvcx/wou+ 8Q5G3izVusZPqYH8p3oXkX678UTk8zjUCl5kFWak1bW+0SOg5T7XN+aaYAbAya0hc+Lv 4lHy5swPYArJZIScACUVYA09ULFtbYdzKl2ogxS/xHIWCeHWS6xKOY09iXQs+vEaUTEB EUYQ== X-Gm-Message-State: AOAM531HLH3AxfpwCEUwb3KqL9SORub5hJiu6nwKk5KZk6qiIzNlKHVn kWBeS7ISwfsPNumDo6h3Qcs2nPhQ02xJtQ== X-Google-Smtp-Source: ABdhPJxWmMLZBaOB5N8qbBHnnbLie5HFxKYc0lPjeeD8EERXeD/Tbfy05QrQX4XflhBYqFwL1h8JsA== X-Received: by 2002:a05:620a:134e:: with SMTP id c14mr7713557qkl.223.1599956906916; Sat, 12 Sep 2020 17:28:26 -0700 (PDT) Received: from godwin.fios-router.home (pool-108-51-35-162.washdc.fios.verizon.net. [108.51.35.162]) by smtp.gmail.com with ESMTPSA id i7sm9066117qkb.131.2020.09.12.17.28.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Sep 2020 17:28:26 -0700 (PDT) From: Sean Anderson To: u-boot@lists.denx.de Cc: Tom Rini , Simon Glass , Marek Vasut , Heinrich Schuchardt , Sean Anderson , Alex Marginean , Joe Hershberger Subject: [PATCH 2/4] net: mdio: Supply appropriate devices for dev_dgb calls Date: Sat, 12 Sep 2020 20:28:19 -0400 Message-Id: <20200913002821.404022-3-seanga2@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200913002821.404022-1-seanga2@gmail.com> References: <20200913002821.404022-1-seanga2@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean The name of the device we are working on is `ethdev` and not just `dev`. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- net/mdio-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/mdio-uclass.c b/net/mdio-uclass.c index 66ee2e1976..b5e8e46512 100644 --- a/net/mdio-uclass.c +++ b/net/mdio-uclass.c @@ -145,7 +145,7 @@ static struct phy_device *dm_eth_connect_phy_handle(struct udevice *ethdev, break; if (!ofnode_valid(phandle.node)) { - dev_dbg(dev, "can't find PHY node\n"); + dev_dbg(ethdev, "can't find PHY node\n"); return NULL; } @@ -161,7 +161,7 @@ static struct phy_device *dm_eth_connect_phy_handle(struct udevice *ethdev, if (uclass_get_device_by_ofnode(UCLASS_MDIO, ofnode_get_parent(phandle.node), &mdiodev)) { - dev_dbg(dev, "can't find MDIO bus for node %s\n", + dev_dbg(ethdev, "can't find MDIO bus for node %s\n", ofnode_get_name(ofnode_get_parent(phandle.node))); return NULL; }