From patchwork Mon Oct 5 13:15:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 1376771 X-Patchwork-Delegate: mario.six@gdsys.cc 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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=reject dis=none) header.from=prevas.dk Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.a=rsa-sha256 header.s=selector1 header.b=ZXYnAxLm; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4C4h1q2k5xz9sS8 for ; Tue, 6 Oct 2020 00:16:14 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 88C2D82337; Mon, 5 Oct 2020 15:15:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.b="ZXYnAxLm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 24306808F1; Mon, 5 Oct 2020 15:15:40 +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=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-db5eur03on071c.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0a::71c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3F972808F1 for ; Mon, 5 Oct 2020 15:15:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rasmus.villemoes@prevas.dk ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DF7h4NoBAD3WChiJS6IbRfFcqXm9WZReJ1dflHzurannMQCKxUPbiWSlgJzXD8fq/njGdsUDWlnQ1zCeCigdt+58ZlnQQBxIdvM8sd7HQUp/rXuVpAP5y0HtG2Lf3T30//BErOsQ7fjyjBEYYaDt4SBfxQToWu0+4OWQrV3xmVRIBUgSMQTFxpB5F+558Ci/Yh3lBILBTTjIH5Oa38e7Wzq4wyLJtMnKUyUVjmfr719FXIMC+mbrF3OBYNSI8rI0v6ltuKvPTd18Ht00cFuSuAuTDgDJKVeaOm0iZTca4JGiKLDG9TM2ljDPZp17JBS+SKb3L+rncM0xCYV31adlyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CYXE6MqihrCfnCLf+c3Hz0c9egChYfN2VaRk+c2tfGg=; b=P6A7rUNqGhX9XZaYpPVHNCA+nwQKmMJrUbQkMPBEcm5qJdLMf4AFYb9+1Ev4aBSGXDKbEUMitmr0P5jicOcX0gv7uDENt4L+6/S/6amPjB7bFa6/qFB1PHG72iRj9gI/lPP7H1GExNE2ozAuc/41BjCr50E6tHgcAQiQXyn/hSRE8+EeR24r/AJCVLVq7fnJ8I489HrMcJR7gQkF6gPGmcCukUFCfPOn8/1Ri8e7ag5U1zTSJQCA+OMek3k3JQ7J9sB4Rp3Ka84ZwFRU0WfkY+ESL3qKkc5I1ptrL4J1b07gl/QFHqnErGdys7zISZ8xK5jiBwEDsYtqF+BDaTr7fw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=prevas.dk; dmarc=pass action=none header.from=prevas.dk; dkim=pass header.d=prevas.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.dk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CYXE6MqihrCfnCLf+c3Hz0c9egChYfN2VaRk+c2tfGg=; b=ZXYnAxLmD/IPAPBE0KCw57ZWmmtA3sJg62hQbG+1mfeQ2UZaruBcHG3IM8uGxrTO/40sBuS1by7rASqTNhDRQy03RMCO3V7vim0aZWx/I/aLEFJBk9CL+SlflAvafvflmGxPLt6hQqqCCIUg4JvQGBPCeEgz/bPwFUA+L5vbtwk= Authentication-Results: lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=none action=none header.from=prevas.dk; Received: from VI1PR10MB1885.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:34::27) by VE1PR10MB3087.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:10d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.32; Mon, 5 Oct 2020 13:15:29 +0000 Received: from VI1PR10MB1885.EURPRD10.PROD.OUTLOOK.COM ([fe80::150a:3ae2:7b4e:b070]) by VI1PR10MB1885.EURPRD10.PROD.OUTLOOK.COM ([fe80::150a:3ae2:7b4e:b070%5]) with mapi id 15.20.3412.029; Mon, 5 Oct 2020 13:15:29 +0000 From: Rasmus Villemoes To: u-boot@lists.denx.de Cc: Heiko Schocher , Joe Hershberger , Rasmus Villemoes Subject: [PATCH 1/3] mdio-uclass.c: support fixed-link subnodes Date: Mon, 5 Oct 2020 15:15:16 +0200 Message-Id: <20201005131518.10289-2-rasmus.villemoes@prevas.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20201005131518.10289-1-rasmus.villemoes@prevas.dk> References: <20201005131518.10289-1-rasmus.villemoes@prevas.dk> X-ClientProxiedBy: AM0PR03CA0062.eurprd03.prod.outlook.com (2603:10a6:208::39) To VI1PR10MB1885.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:34::27) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from prevas-ravi.prevas.se (81.216.59.226) by AM0PR03CA0062.eurprd03.prod.outlook.com (2603:10a6:208::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.34 via Frontend Transport; Mon, 5 Oct 2020 13:15:28 +0000 X-Mailer: git-send-email 2.23.0 X-Originating-IP: [81.216.59.226] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b665ccb6-b196-40d9-db60-08d86930bb03 X-MS-TrafficTypeDiagnostic: VE1PR10MB3087: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GPE8mErGFV4afNQQHuoJd/GnU9r4Vgzf+nfK8BWIpClFzIbAlD8c0Y14sHtIc46TthV5N5C8RCNsliZvGB3Y+WcXpGRgiqxbqk4j6ACuCOM1zqeTiKjNbgHlejCIs2wer/w82LWvFTcNehXiI0UUs0rNmQOlzGWd2NPb81WFh8ZIFnkEFDnmMApOe8/033pnfzigfO0JVcLybf6ryQIS6QVy+joWBewgP/08UgmxpHx7ukr8l04PR5CuPSWNb09xh+SAGaXp0ggASsgbwFWfC28npGb48MLwVyzyqkKvWYWBQpTNdpLL0UGoMw3y2fEjXel6iOM44Fa8EeRE2Kuqdg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR10MB1885.EURPRD10.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(39850400004)(396003)(376002)(136003)(366004)(346002)(8936002)(6916009)(6666004)(2906002)(8676002)(16526019)(8976002)(36756003)(86362001)(186003)(44832011)(6486002)(6506007)(2616005)(26005)(4326008)(316002)(6512007)(54906003)(66476007)(1076003)(66556008)(5660300002)(107886003)(956004)(66946007)(478600001)(52116002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: yJuZahv4YlrKb2pRcnQa7IaARNpVyzadRwIE+NIQFwqoDF1lVFRtC0zHf/6xIgICKyYAKsU1BRyHZWDPquAja6xiNEkpY4sg4yK0mY+pK0LkyY1GxZL6wIdetft6lD6LvhaVrPYs1Vg32X4s/ShxFYToW0RQnD+t5zvjL5PJyPY3pp+LBbesZXYnseD8bCQ/BTCxLkee/0oEPwbBFYcqV9yYyb2m8a93Yj0RW5hlOS/42fI+Hb6+D4tf3khOc/3QsaO0U5UacMQqpJKJrOC3pLLxoifbBmzeHOr7BDx+FoDnyvZXlton9nWecUpvts5xPuxyGNCQcKWcSGu0eV04scKxLJkwtBQxk7u5nhJrpwzLBIYDH0n71uO5vKJf/d+ab4hY8zN4gEgzyta0IDEE+dtt/BkngqZVeO1emuX/jkN1Gt3QFRYO6ohb7XUdjRTWHCvfBKbGGusJdfgOESaIwKK2J829nSy7PGnX9/xyEMvNkOR+46RUiccR7oEFZwVtoC6PD1LbCYdh46rcX34+UTaEvdWao2Owyrj6ItvZDv5nWbBafrANCsnvWRB+3JmYHR2MNh4Uj0FtCYuZGsf2tkvwTajM4sj3m5jqVZbB9eCw8Xw8zA4N7qqQECwCYIPc7CDkBIOY6XViZRNKCkQ0tQ== X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: b665ccb6-b196-40d9-db60-08d86930bb03 X-MS-Exchange-CrossTenant-AuthSource: VI1PR10MB1885.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2020 13:15:29.7559 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: iRkm2F3dHcwGKkk77O+BuJeDLMVv870UAA40thsPTQRUAnh0g+bv9ui1+jqWl1gpSQN2HYphSVHXQ2B3KcTvWjU0/2bCAWTU5ADNfu1RSv8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR10MB3087 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 When trying to port our mpc8309-based board to DM_ETH, on top of Heiko's patches, I found that nothing in mdio-uclass.c seems to support the use of a fixed-link subnode of the ethernet DT node. That is, the ethernet node looks like enet0: ethernet@2000 { device_type = "network"; compatible = "ucc_geth"; ... fixed-link { reg = <0xffffffff>; speed = <100>; full-duplex; }; but the current code expects there to be phy-handle property. Adding that, i.e. phy-handle = <&enet0phy>; enet0phy: fixed-link { just makes the code break a few lines later since a fixed-link node doesn't have a reg property. Ignoring the dtc complaint and adding a dummy reg property, we of course hit "can't find MDIO bus for node ethernet@2000" since indeed, the parent node of the phy node does not represent an MDIO bus. So that's obviously the wrong path. Now, in linux, it seems that the fixed link case is treated specially; in the of_phy_get_and_connect() which roughly corresponds to dm_eth_connect_phy_handle() we have if (of_phy_is_fixed_link(np)) { ret = of_phy_register_fixed_link(np); ... } else { phy_np = of_parse_phandle(np, "phy-handle", 0); ... } phy = of_phy_connect(dev, phy_np, hndlr, 0, iface); And U-Boot's phy_connect() does have support for fixed-link subnodes. Calling phy_connect() directly with NULL bus and a dummy address does seem to make the ethernet work. Signed-off-by: Rasmus Villemoes Reviewed-by: Heiko Schocher --- net/mdio-uclass.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/net/mdio-uclass.c b/net/mdio-uclass.c index 66ee2e1976..2f932b77df 100644 --- a/net/mdio-uclass.c +++ b/net/mdio-uclass.c @@ -139,6 +139,12 @@ static struct phy_device *dm_eth_connect_phy_handle(struct udevice *ethdev, struct ofnode_phandle_args phandle = {.node = ofnode_null()}; int i; + if (CONFIG_IS_ENABLED(PHY_FIXED) && + ofnode_valid(dev_read_subnode(ethdev, "fixed-link"))) { + phy = phy_connect(NULL, -1, ethdev, interface); + goto out; + } + for (i = 0; i < PHY_HANDLE_STR_CNT; i++) if (!dev_read_phandle_with_args(ethdev, phy_handle_str[i], NULL, 0, 0, &phandle)) @@ -168,6 +174,7 @@ static struct phy_device *dm_eth_connect_phy_handle(struct udevice *ethdev, phy = dm_mdio_phy_connect(mdiodev, phy_addr, ethdev, interface); +out: if (phy) phy->node = phandle.node; From patchwork Mon Oct 5 13:15:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 1376772 X-Patchwork-Delegate: mario.six@gdsys.cc 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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=reject dis=none) header.from=prevas.dk Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.a=rsa-sha256 header.s=selector1 header.b=Z1vx48LU; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4C4h244SVnz9sS8 for ; Tue, 6 Oct 2020 00:16:28 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C866582356; Mon, 5 Oct 2020 15:15:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.b="Z1vx48LU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2415182355; Mon, 5 Oct 2020 15:15:47 +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=-0.2 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FORGED_SPF_HELO,KHOP_HELO_FCRDNS,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-db5eur03on071c.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0a::71c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C93618158B for ; Mon, 5 Oct 2020 15:15:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rasmus.villemoes@prevas.dk ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mqwIJjjdAi8nE2GmtW6pqy9SAwVLvHIbbt3CN3UlofIzSViKHuWaoVXJXPAPo+Lpq6QXgKAwudoFQsCMapfWCdZEqsnTrTXu8K+U70cZZNdxzJ0KXTNvkR2cYZhBtMSNNa3jrZKoxGDSfxELbcX5UkWnysrVMCYNxL9nhQQ9opslmVZt+YDzf19qFq+JNxaDze51XDOgllqfj5tl0fwkD6pZiPYFlbonVA9t8mnrBbJH65+TmitBciHJoBk+rCmf8m4Xt3TrTYPNFWtk8H4xmjTmU+SnntrLIJn9F0BnGS73BfMnRfqvudmvjmqdQfmgUF+TxDHQuYXdxb5J2YeM/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CYCIERIz98lHQFgWXbwi8K/+F1HVrTXdzVm1erim+dI=; b=RaTo9iAgXv2faYc2fBaM/boeAcejbq9gVKVUF9ktYKsQlyMBUwaGNOc8mJFrl/1Oa4iaJ7rhJ/Lq3XebSOMldRIBqsHvCrlTeplYMv7rs4AsQIyJZ0ZZ5J/K6mSYgLTVKXScV/Hm7SpWFA1tgH3Pwz3CgYXS1nrNduY1y3PPMngQSsR91Dbj5qfHx12UoMP5qw5PPk0z0MVJ5Tc8iEexVukI4fwp+w9+EVeSFZTOiv9a5qDJjGxYVRfdtb6AfR6dBV79+QjeacK0To+f4XIRT4dcJ26v0pRxP8vJiGqLGcLM6reicpGzbKDgWzjMeIS4OAPEHsGexK4XR58c5+xTRQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=prevas.dk; dmarc=pass action=none header.from=prevas.dk; dkim=pass header.d=prevas.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.dk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CYCIERIz98lHQFgWXbwi8K/+F1HVrTXdzVm1erim+dI=; b=Z1vx48LUfaUMF0g4YZIw3yiM/Y0uC6aW99YpGyJxmko1csBdaFbkiAr8UJ8uhg3V6c3X1493coJntIWiPVfSTs9EhjQ7saxfBeOH3wXjd5OmDKtJPo2D4fr3Ou8A8o4LMaiX8y0NjdJU2htPJ4VKSi3x7Azns9WzqKfY98wPd2U= Authentication-Results: lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=none action=none header.from=prevas.dk; Received: from VI1PR10MB1885.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:34::27) by VE1PR10MB3087.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:10d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.32; Mon, 5 Oct 2020 13:15:30 +0000 Received: from VI1PR10MB1885.EURPRD10.PROD.OUTLOOK.COM ([fe80::150a:3ae2:7b4e:b070]) by VI1PR10MB1885.EURPRD10.PROD.OUTLOOK.COM ([fe80::150a:3ae2:7b4e:b070%5]) with mapi id 15.20.3412.029; Mon, 5 Oct 2020 13:15:30 +0000 From: Rasmus Villemoes To: u-boot@lists.denx.de Cc: Heiko Schocher , Joe Hershberger , Rasmus Villemoes Subject: [PATCH 2/3] dm_qe_uec.c: fix indentation in uec_set_mac_if_mode() Date: Mon, 5 Oct 2020 15:15:17 +0200 Message-Id: <20201005131518.10289-3-rasmus.villemoes@prevas.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20201005131518.10289-1-rasmus.villemoes@prevas.dk> References: <20201005131518.10289-1-rasmus.villemoes@prevas.dk> X-ClientProxiedBy: AM0PR03CA0062.eurprd03.prod.outlook.com (2603:10a6:208::39) To VI1PR10MB1885.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:34::27) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from prevas-ravi.prevas.se (81.216.59.226) by AM0PR03CA0062.eurprd03.prod.outlook.com (2603:10a6:208::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.34 via Frontend Transport; Mon, 5 Oct 2020 13:15:30 +0000 X-Mailer: git-send-email 2.23.0 X-Originating-IP: [81.216.59.226] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6adeb5be-2aa7-492d-f0fb-08d86930bbe4 X-MS-TrafficTypeDiagnostic: VE1PR10MB3087: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:346; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LVinuI1ARBUG+9DcC4k7vV/oIophC6huJ6WCLhSHvoHJKl8C7LcOp2iw9+KziTAA8rj6XCazxW3Oy9sX3OxGHdx24zWI1dGFvJwxZOK7yPMpJplhuzbh56IptzOiwP6WTCNuBafoQQ0zkV5fi4Jr+vna0gh/orGdMZR9u8rq0UkMRlIUq5pbIE9eaUPw1KqNqmZgCvobPbO3HFgOjuXYvbWd6eKkj0+6uLVeJkRTFoSmO87wIRLdOz2drurcuBloe77kY14tU3CwhD+mtg9KxZBbLXf8GYIV9PFbHZhfsFgZWvLWUSvY2y0C/Rd4CUXhHXza+G1jhi4f3DTdCOhS6Q== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR10MB1885.EURPRD10.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(39850400004)(396003)(376002)(136003)(366004)(346002)(8936002)(6916009)(6666004)(2906002)(8676002)(16526019)(8976002)(36756003)(86362001)(186003)(44832011)(6486002)(6506007)(2616005)(26005)(4326008)(83380400001)(316002)(6512007)(54906003)(66476007)(1076003)(66556008)(5660300002)(107886003)(956004)(66946007)(478600001)(4744005)(52116002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: OHA2OQOLixqUQ5kPKbUomnpPl7pgYOJNI3KRvT+xCTn2PN0AqPkkbRS+HWFDnFcy8SEvnnPVO4VwvrToddDqWwM+s+NJ2S1tfIAngRLB+DuBWHojhO9FjfKH3cJ3D5cvnUXtpOlM5dSZQt3wrlGY0AWu7hLlZ/XHe6Xa6wQfH9TLwoArMX/cexGkNI7nkKzHVwhPjw+6XYKDtahjp2XL+eaauDemxgnJE6c9tkxcGyjb8s+X/e4hoxdhgeFTmqFUGnZppFhIDMihUKtUrUc6rOWOUlSZkc15+T02+EB0pow28KuudysWQC8yoasWdhCiByjFsCVnTO+vEDQcTvHg3BziXBL5lAOSkvjY7Pel4hSRUq1zen8C4LjhzybI5EJhinO6DqIyFvVm5reL8iY0MxjVuoXDj+9P0OETbYhFcC45LcCcom7Vmc3bfzZCxNdS7mpU5rjzA2BhPz5ynSD2YA0utJn4V7OT7YhL8z16vxjIWvakz4Sisd/Itxn3Cm1G1aFvQSEOy+v0vYvVtWxvbaZEUiBkT6wkD/Nw2SUgM9pXSOPZh/8TqIu5BL/n+J8fBt+v4N4LKMW1ZBFwrS+DkVaIEhev4peSPp+dxpFB2k3jzdmIXc0lme/ICx/IkEJNUVxmUbg6aF0P494jrj/mqA== X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: 6adeb5be-2aa7-492d-f0fb-08d86930bbe4 X-MS-Exchange-CrossTenant-AuthSource: VI1PR10MB1885.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2020 13:15:30.7213 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: dqvtvl06Ycru3A0arR2eatZ3y4Tj/3J1pubDAZpJ+O2wafp3vfrKvzu35ScqZvbm7TgOq6gZGw10U4tnyQ8pL0GmT2zod87uX0Er0Jzqrzg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR10MB3087 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 Signed-off-by: Rasmus Villemoes Reviewed-by: Heiko Schocher --- drivers/net/qe/dm_qe_uec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/qe/dm_qe_uec.c b/drivers/net/qe/dm_qe_uec.c index 3482b3ff17..e2b8bf02f9 100644 --- a/drivers/net/qe/dm_qe_uec.c +++ b/drivers/net/qe/dm_qe_uec.c @@ -171,8 +171,8 @@ static int uec_set_mac_if_mode(struct uec_priv *uec) break; default: return -EINVAL; - } - break; + } + break; case SPEED_1000: maccfg2 |= MACCFG2_INTERFACE_MODE_BYTE; switch (enet_if_mode) { From patchwork Mon Oct 5 13:15:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 1376773 X-Patchwork-Delegate: mario.six@gdsys.cc 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=reject dis=none) header.from=prevas.dk Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.a=rsa-sha256 header.s=selector1 header.b=hHQ4yIUS; 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 4C4h2P5vmhz9sS8 for ; Tue, 6 Oct 2020 00:16:45 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C5FCD82366; Mon, 5 Oct 2020 15:15:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.b="hHQ4yIUS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2E5848235C; Mon, 5 Oct 2020 15:15:48 +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=-0.2 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FORGED_SPF_HELO,KHOP_HELO_FCRDNS,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-db5eur03on071c.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0a::71c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 410F981F3C for ; Mon, 5 Oct 2020 15:15:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rasmus.villemoes@prevas.dk ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=STe++U6JWgI7oygR0H+qMIzIKzw8ig3zX6i+Oa63TeytTWRNBqDPNtwvL5uWIc8S9LqDw85fWpKWlpilq7uLH4znbovUkGInyYiqaHRZG3k8qUEG7Iqu8g5mdM2toGsdAaUfSlXqb9uiVUTRwxhAfSE+dVYS+5HAXgLikYdnfVjit34qCAsRPF0zHBs5mti0ppsGpj2SAcLpuNxVq6vrVugoJjW5b0fGAJwR2JZpebAqnho4gnh6nnH7mY/GpmXO/HFiiPNHKpCbnWlkATStZYPPhN6fv/LfJgDsOrj5Bmq4lRiBfyAgOlLgZApHHpDI0JBPBw04tq1OZ6XnlFYiLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k290J+aP7xa5cYH4gJAw2RFrGwq+pWXa1+4Y5Xban/I=; b=bE4dSqhAE1+Abm70pVLBAX0f0VsKGPx3wEu+h4gIQUyQMxt3MUC8dbJPzL7yF96CX+vBcE3UjGUXTCXIJT5p4YMYWmi2DZK0seN62oWXY/u/NRE1r6WEf2znDpVnhW1EWhetz9Ca4QWVvAzosjeuY9TIPut/pMCJqAdWPSpnYAW/cxl0jutkl74JOsJ3Eql3q8a5kPPSyXTm8cCPD73anoWV900kLxtHtziiCU6neFRMU80pvncOeri3S6weG8TQGRCntZNqIrExn7r1kjOQSnRjeMwfskx/8w+/8LsUO5Z+3RhrCT83LemBWluYn1cKqJVj083Cgh9OmkpAJmdkFQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=prevas.dk; dmarc=pass action=none header.from=prevas.dk; dkim=pass header.d=prevas.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.dk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k290J+aP7xa5cYH4gJAw2RFrGwq+pWXa1+4Y5Xban/I=; b=hHQ4yIUSqfqZH3BswAWVR4kkQFdDmS9eYtQZf1RcCuIoLlgbhCPBZBInWSqg7SMyuOr3i6l6esV0euCK8r2uKt4ypoCbJ+iIPx6VS1Jhc9NqpTGaxM7QFRhFCBPO7rKR1fEiNSgDFz/WHcWxFHfWeTYt17/Z9/+waLG61kApO0g= Authentication-Results: lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=none action=none header.from=prevas.dk; Received: from VI1PR10MB1885.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:34::27) by VE1PR10MB3087.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:10d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.32; Mon, 5 Oct 2020 13:15:31 +0000 Received: from VI1PR10MB1885.EURPRD10.PROD.OUTLOOK.COM ([fe80::150a:3ae2:7b4e:b070]) by VI1PR10MB1885.EURPRD10.PROD.OUTLOOK.COM ([fe80::150a:3ae2:7b4e:b070%5]) with mapi id 15.20.3412.029; Mon, 5 Oct 2020 13:15:31 +0000 From: Rasmus Villemoes To: u-boot@lists.denx.de Cc: Heiko Schocher , Joe Hershberger , Rasmus Villemoes Subject: [PATCH 3/3] uec.h: fix COFIG_DM typo Date: Mon, 5 Oct 2020 15:15:18 +0200 Message-Id: <20201005131518.10289-4-rasmus.villemoes@prevas.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20201005131518.10289-1-rasmus.villemoes@prevas.dk> References: <20201005131518.10289-1-rasmus.villemoes@prevas.dk> X-ClientProxiedBy: AM0PR03CA0062.eurprd03.prod.outlook.com (2603:10a6:208::39) To VI1PR10MB1885.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:34::27) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from prevas-ravi.prevas.se (81.216.59.226) by AM0PR03CA0062.eurprd03.prod.outlook.com (2603:10a6:208::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.34 via Frontend Transport; Mon, 5 Oct 2020 13:15:30 +0000 X-Mailer: git-send-email 2.23.0 X-Originating-IP: [81.216.59.226] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9366f823-4fdb-4729-97be-08d86930bc74 X-MS-TrafficTypeDiagnostic: VE1PR10MB3087: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:813; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: D5zR3Na4LJaNu/lSYDf8V4Z0zJ0GIZs1CIxzDZY3mEVucb6jZBv3XEAfi6K/rLR3u+hDWFM5MZHncSCCUhR1alDoj9lg1LUsIK0foewK7bD29Tw0FdDnraI0dqerTCSfNvigmAWd2ss5DMqePfjRNn2XQLDr3qGAR8oqvXraq/6/4PTY19HYe/Jhp/DF0q0ZSzRglzdnoY1031cKfmhXw9wZ96fH5h/T1F9exyvIEXXJDT4aGpE4FYR/GY0azk/uOfObj3+OVrn2SQjOuBz2jI+XN43sI1dP6c+5mdpT9e3piNGNbeTNG3s1DNwu74hQD+HM5SeGwhfGPSuuog9wPw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR10MB1885.EURPRD10.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(39850400004)(396003)(376002)(136003)(366004)(346002)(8936002)(6916009)(6666004)(2906002)(8676002)(16526019)(8976002)(36756003)(86362001)(186003)(44832011)(6486002)(6506007)(2616005)(26005)(4326008)(83380400001)(316002)(6512007)(54906003)(66476007)(1076003)(66556008)(5660300002)(107886003)(956004)(66946007)(478600001)(4744005)(52116002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: 88CBFK4dm7azO6gNK8A60ZbrgaIPtBXnF9prqeThUO/8l5yR5GOqnZ+pDsTQ3pBfcR2ZyNYQAZADOBtElvGTJp8183R/SOAtfDJBHzlzYhnGl3zaHP4xDf2BW4U+Mki2CyDF9VnaijE/YTAa0cK+1ZsyTrvsHSZdct4JZJ7C9fUP4tlmODnuHxnIEmfZACwa5WoVNhQQMehCMLm6ApNYbsuE7vUqBAEbsPuXRYJ15QHwWdSbHoPzb7H5e8IA/yMTQrRj/XbeDzX3QM2BqAMIkhlX17AN+K/pd6rR1bYZClRL/Sfa/qay6pwBr3xL1ncCbteRK3/LnfPMHFZ9UQbUVOYlcAlBg/5VYPxnS3aFc6bmIMiNLnxqRcrEWDTKEh0EyIxT6PgwLNuhdw1XGjo2L4Ssv0+WeNv8idIc/s+bNZxcZbtUH3AftyFDhR4shrmoFrM3Coph0tTp/2Y4HL7r8t6LtK/3fV8oJRy1xVRlrpvIiTv1DtL2+jTaxyx5riJowxFXoJ1+YJM3qx8uLmBvAJBcPAxUzS0g0bHoiCIFne8quXkBQ2J/x7RskjMQDYccL4ZOiChJw7g/3HUZ86Leau2k84kPTT+RlvuLNw3tVxMCRToL5yjb9Pi/vhNfwIkNuXRFcV27E8QSOJzJnd5nrA== X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: 9366f823-4fdb-4729-97be-08d86930bc74 X-MS-Exchange-CrossTenant-AuthSource: VI1PR10MB1885.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2020 13:15:31.7767 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NSETu37aT6/bVuG+1SDan8l6stwF18xcGHfcz+c21N+4zv96hdIYOJtdHyo5dlY6kUuYrFQNIBu+jDFmEqBABuWONoLKnfUiZQMoXdEQjTQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR10MB3087 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 Signed-off-by: Rasmus Villemoes Reviewed-by: Heiko Schocher --- drivers/net/qe/uec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/qe/uec.h b/drivers/net/qe/uec.h index 7cd4b8737a..32b7d3e561 100644 --- a/drivers/net/qe/uec.h +++ b/drivers/net/qe/uec.h @@ -678,7 +678,7 @@ struct uec_priv { int grace_stopped_tx; int grace_stopped_rx; int the_first_run; -#if !defined(COFIG_DM) +#if !defined(CONFIG_DM) /* PHY specific */ struct uec_mii_info *mii_info; int oldspeed;