From patchwork Mon Apr 18 19:36:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 1618528 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=seco.com header.i=@seco.com header.a=rsa-sha256 header.s=selector1 header.b=SRY+iNo8; dkim-atps=neutral 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=) 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4Khxzd1gvLz9sG6 for ; Tue, 19 Apr 2022 05:37:49 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AE0B08392C; Mon, 18 Apr 2022 21:37:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=seco.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=seco.com header.i=@seco.com header.b="SRY+iNo8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 28190838F0; Mon, 18 Apr 2022 21:37:28 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2061f.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::61f]) (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 AD6BB83989 for ; Mon, 18 Apr 2022 21:37:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=seco.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sean.anderson@seco.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jlK0324xZv8gGBSDFrOJWss0Y8iZ6J/RLGjPt5P1om/1iZDNEvMzVsm+2QM1cjobVem8XGP8hFupQqhcdVGfQRdVW9M7/x+lpNfF/qXM5/nIND2pFcG0tT5lBh9uZ32LzgpLgv5iG6HTQC1sY6o43b2nC4p9DYVOVvNJgp1ff/8PqZKAcNvTYNqhgjqYIWRiomV5SoDqFqj/QBEc5iw1gxsYvsDffjBQGtgoaXbTFchDlv9YggRx+FNZnTO7Z2Hb63MkeRko4+nEkGJnRY+W09RLVrSRnaSsIg8+ZFHXaEGmbVvL/M3B1RObOKWU0EglQmMK5YCRrvoNpZtbAv7yPg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EGN0XnBxmmcXrm2m2REuCQ+KPhMSCKQUyoTbAPilAi4=; b=baSRV7yNq3zgEugmDobkd8FEot/jBTC1qNjMI7baHTLilM3Lb0jdTkkI97Wb8dl0Kin9t6wlIJ7v3fhEr1akj72jsT4xQd5KH8acqzco0UMaz4Y9o5fdTgb9LSpWYjHL3hGg5N74ZHyi4BHNL8eLFXzuV+qvPP3dKDK38gBp2+Edpkjgkm3Qm2Ter1TfLVTDFZZXDncsix9kadahrJszUeJz27vSvuB+52e38XROIBhqIGmG/y95MAOeRJsy0vCuRe095cBkehsxUXOxxFD4NJqdlhUTotB+30bF2iGasBkD9xHtR8ZPyAZQQOYfXweb/McVwGsOfOaadSo0WpI0PA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=seco.com; dmarc=pass action=none header.from=seco.com; dkim=pass header.d=seco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seco.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EGN0XnBxmmcXrm2m2REuCQ+KPhMSCKQUyoTbAPilAi4=; b=SRY+iNo8tbztI4IRY0kg+x42ZdRneiAvL35x6AJlDpEKmMUtMOOYSCxs4YNPZFA53u1hknbIoUc1oolcj07i/tzSHzOz4GtSd+oiLbCZqzFlPQFhqC7FmQU+GtRYBHngo88g6srKtOV1DbiBWaTOLh/+Ix3BtNPy7yT3vIvA5yRHHHoR5aRh2tlXA4wV8aPXSJm8QgRS7+yN5YuSyzstEv+EmY54lYyCVugt7BjtqgqKd9Yu5Jb9zJejmEH92saTKWnVeCHjYzCITCfz2n/Gt4iXCzmjT6ysVnekFb+EvpeFy3Gw1IqU0HWAYgYVzsUjV+UAFnpY9vE+ASYzgSAyOw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) by DB7PR03MB4330.eurprd03.prod.outlook.com (2603:10a6:10:15::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20; Mon, 18 Apr 2022 19:37:23 +0000 Received: from DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::fd2d:a04b:de07:33f8]) by DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::fd2d:a04b:de07:33f8%6]) with mapi id 15.20.5164.025; Mon, 18 Apr 2022 19:37:23 +0000 From: Sean Anderson To: u-boot@lists.denx.de, Simon Glass Cc: Mario Six , Ramon Fried , Heinrich Schuchardt , Tom Rini , Joe Hershberger , Sean Anderson , =?utf-8?q?Marek_Beh=C3=BAn?= Subject: [PATCH v3 01/13] sandbox: net: Add aliases for ethernet devices Date: Mon, 18 Apr 2022 15:36:47 -0400 Message-Id: <20220418193659.3677824-2-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20220418193659.3677824-1-sean.anderson@seco.com> References: <20220418193659.3677824-1-sean.anderson@seco.com> X-ClientProxiedBy: MN2PR10CA0022.namprd10.prod.outlook.com (2603:10b6:208:120::35) To DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 99c9a9be-fa91-4e7b-1249-08da2172dc7d X-MS-TrafficTypeDiagnostic: DB7PR03MB4330:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1KphnkCkWzzYT3mykl9gI1PIQFnf79NBTY/Wo4mVG7NSd16H6XVDqC6KlUqy9fRpgAuvUSnhVuxLcGBXp71pitDcjj5mOFSQo+BS1exrphK/G0Xn/QXCNLr1xgtkxHpu91/QpZlv8y2VZlWf2GsxRaJnaV/WuPk/sKgP8KUh5rdEYrIYXzl6KhPxK4tbM8gJLQupPkrGvIaXd+IHuEDTPbu2rYN8eKI+VTODRXlHpRsZrqFAUUtQdJriyD4dFvGGKexf8QHtRH8gg/VA+2dzjn8a5usqM/JLsM+/5n9Lkn+NMyg/J2gBMlazPvUjvX5FLa7G5p5Ni+H7cI5Lan5OLvNv6rP2cMZ3lOCtGdZOcHjJLcx8q76eWPU5NZysRMizlPTeN8xNyBEtCtw9eeWlFoj1U61T5PgppZWL1FtVPrV0r/1tyjUZIXRy+/k9NRHnag7KuF8NY6YUFZd5E7K0Rpesgcmn6E+VOToW+0feHnzjKvXBdRFepixExiF0xctjiAt0IdwgAjb5+nr3klz2VSMhTefweVkeZ+SPthLiUC/5bxqHWt3HaUe/1MY6qcGGxRbrSz6vfjkum+X2niJzp9CCR73TG3Bv6y7WoQp8xIFT6CVwXsK0xF0vVNTsWH6w7Vf///7XHEDC+Kv+/f1BH3yh+o5PcZPIc/38K4KckfFPfbTI+F73vHH20DObW1o9DucX0TxW+WKVEDCZvwzuSg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB7PR03MB4972.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(6486002)(6916009)(316002)(4326008)(66946007)(66476007)(8676002)(36756003)(66556008)(186003)(1076003)(8936002)(86362001)(5660300002)(38100700002)(54906003)(38350700002)(2906002)(83380400001)(44832011)(2616005)(26005)(6512007)(6506007)(6666004)(52116002)(508600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?aHSmSAcohaoB0vUqekfj/yY2XjUU?= =?utf-8?q?iKaH5/RzZIhlmytPjHP79bPCt+5nCZUurjFQtGkQZDn0SA+KsGkqJ7vz+eq/+G24Y?= =?utf-8?q?FI3+JNHNRmJtLHGYtd4ErZm0vvvNOcocysuhLFG/Yw15loc6Gpj7Ck/J7hoKL2OA7?= =?utf-8?q?4UXSv3TlZEfRO29Y1ur3WHqOn62RQZzVqTRcKn1jRGHKjwES92ZlJXgFSi362kuLb?= =?utf-8?q?a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?BsP/5D3widXx6w8f4jbFG11CJu/HabBBAHn1GzXwqnqrt8FZyAxKmqfxopPW7EfIO?= =?utf-8?q?PzXRbOAgwUoCd91DZJ/ldQm1sSO0r9NS9MkWDypmiDTiPM5t6K8W4+FBoVyvVKKPn?= =?utf-8?q?hrYFWX0BdTLELxJ9g2SZ7wLkFAT0bJAf7RSMK3coJavUABbp0RiW9qRvfRcbRB0w0?= =?utf-8?q?PSATf5ZOOI+Ou8sMnMDGRbB2Avtq4U+G50kPEqJ30UuUcAceNGUDWuzUuYhAbi1C+?= =?utf-8?q?IxLtzfO3tWQZgwOOPePOY47AhMJbHXFtqjdpShvcliENcWBFEJE+WgEvk3sQtgQdQ?= =?utf-8?q?hjrqOxahSyKZL5+vWDKuZ9oqh4Q8rukdgdQbXpxFEyDCCab3DaGUnit0BuuScZclS?= =?utf-8?q?C5HnUYAH/6lINzibKPLaU0wrTLnDVJnaefqTZ4WxsC2FETheKAY95toKeC5x7VKki?= =?utf-8?q?Y/9uyg854R5nZmFO0ybVBmDMdnjhbop9HevVBO3U74ZVina7h3sr2T+SSGovxCsT+?= =?utf-8?q?tAmc6pwJLet78ciongXQ+8cewZipp2vNyF1a+2DQbSAoSxOS0aY2ZmflkBVpxghaQ?= =?utf-8?q?5wn/EgZU7xRL2z2MGsvysqBaZo01eaMBEf9/zKlg+Z6l1uN454rWY=3D?= X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: 99c9a9be-fa91-4e7b-1249-08da2172dc7d X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4972.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2022 19:37:23.8175 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: puChxKQ4pDvNrnbvvBXGwWtHXkZ3QzpujcNJCvsYtyoxD0y2+PfUF/vb6OqKZQLFu0l2c4+jVn/jwdn1amfC3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR03MB4330 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.5 at phobos.denx.de X-Virus-Status: Clean Commit f3dd213e15 ("net: introduce helpers to get PHY ofnode from MAC") changed the ethernet sequence assignment from uclass 36: ethernet 0 * eth@10002000 @ 05813460, seq 0 1 * eth@10003000 @ 05813550, seq 5 2 * sbe5 @ 05813640, seq 3 3 * eth@10004000 @ 05813730, seq 6 4 * dsa-test-eth @ 05813820, seq 4 5 * lan0 @ 05813a30, seq 2 6 * lan1 @ 05813b50, seq 7 to uclass 36: ethernet 0 * eth@10002000 @ 03813630, seq 0 1 * eth@10003000 @ 03813720, seq 5 2 * sbe5 @ 03813810, seq 3 3 * eth@10004000 @ 03813900, seq 6 4 phy-test-eth @ 038139f0, seq 7 5 * dsa-test-eth @ 03813ae0, seq 4 6 * lan0 @ 03813cf0, seq 2 7 * lan1 @ 03813e10, seq 8 This caused the mac address assignment to switch around. Avoid this in the future by assigning aliases for all ethernet devices. This reverts the sequence to what it was before the aformentioned commit (with phy-test-eth as seq 8). There is no ethernet1 for whatever reason. Signed-off-by: Sean Anderson --- Changes in v3: - New arch/sandbox/dts/test.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index 5b38ee4a5f..e480f6aff9 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -28,6 +28,9 @@ ethernet3 = ð_3; ethernet4 = &dsa_eth0; ethernet5 = ð_5; + ethernet6 = "/eth@10004000"; + ethernet7 = &swp_1; + ethernet8 = &phy_eth0; gpio1 = &gpio_a; gpio2 = &gpio_b; gpio3 = &gpio_c;