From patchwork Mon Oct 5 13:15:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 1376770 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=fDqP7gQx; dkim-atps=neutral Received: from phobos.denx.de (unknown [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) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C4h1Y6G7Nz9sS8 for ; Tue, 6 Oct 2020 00:15:54 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 87BB6808F1; Mon, 5 Oct 2020 15:15:40 +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="fDqP7gQx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0F954822C8; Mon, 5 Oct 2020 15:15:34 +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 EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on072c.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0d::72c]) (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 ED06780404 for ; Mon, 5 Oct 2020 15:15:30 +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=cSyCg9Yr3yuJDR8vew8SlrNrTpZMqml4lwQQjm6J5nnoBgKjUw7HgXa63Xq55m41Z8/urqcaKdLOuow4ngSqlt2FHoxHuclaHGejgPU1Lp24PJBL9esY5O0uttjzQUjltNfueWXbhN1KXaQV3LdptnVRg8BJfiiHzTsbhTA5MtOqxdLAfD24QXZjvrB5TEXD7kYsl740DhBO4YecG5ikUKMqdB1r3NnvisdwtP5L1cRlUhmyzmoVIgYYh+L3tzDaEpXegR19gnzllGp4OceZPQKcBO2ZPo7reCHjWP04/0aSme83RL0gvSGQ1/S8hnyMYBXI0113GU2BWIZLyYF01Q== 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=iBAYWkgVjuGR2afRvrTYEbKe0BjgVavNYvlQ6w8/Lu0=; b=SKtZsQqqf4QPXOCAVHE/82K7/M6Rwv8TVsY7nJzp3B3OnzasDyfH3+DZ0pjKCA5lXEBU/hgbF0pAyAkYzC5Xik0S8Hlmcyt0WBLHqrbjoW0nK+Iaqh4wghFsBOA8LvOCvxD1VPnVQ3q9/TBN8bbHIpM/8I3AGuEb8fU9SF8hrYpwNn43z5Y/dKExyyPQ56CGs+6/fet2idfQP992zBm/4z4yp5//zhaH0I6hJhcVEhSDY9glC+x/Tn73PQN+CG2ILvOOvZOjkLDlHeUP7443MFwHf+5wXi2O0Egvs9ABxetnIywEJvUAUVBoW9Ljm4G/Q4NgRPHkUqcDlkJd8yMMBg== 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=iBAYWkgVjuGR2afRvrTYEbKe0BjgVavNYvlQ6w8/Lu0=; b=fDqP7gQxvMeiVjEbKOxKmxAwdI6wFikxBChlas8+Kb6dGhElCJ+SfdYOOIHNRG/PwjeRfUROo+5outxGnaXOfvlrbN0drWB4RmRWWOCP6/X+iXGtI2g2Y8fWH4gkOjUq6D8mJEBcrYIa9KhZIzGvmxl7qjIO9TtdR5mY5PEcACA= 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 VI1PR10MB2831.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:e3::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.38; Mon, 5 Oct 2020 13:15:28 +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:28 +0000 From: Rasmus Villemoes To: u-boot@lists.denx.de Cc: Heiko Schocher , Joe Hershberger , Rasmus Villemoes Subject: [PATCH 0/3] DM_ETH v mpc83xx fixups Date: Mon, 5 Oct 2020 15:15:15 +0200 Message-Id: <20201005131518.10289-1-rasmus.villemoes@prevas.dk> X-Mailer: git-send-email 2.23.0 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:27 +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: 0b620651-775c-42d4-0ef5-08d86930ba62 X-MS-TrafficTypeDiagnostic: VI1PR10MB2831: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: k5o/Jcoi9YXC2jgS6er3JEecrGGrdnmIcUKPzP31Ph/9zPsK9QQ9elfKV9ELYGIVADhtoxbLJCU1ZAe2nZBzQSk3jXuTzsodokonO6gPY8vDwyBHWA21SGOzMdxZS3OV7E+DRjyOli9Ak2EO+J9dV5/JBf9wfSJE6svWyFceNeCPLcbgvUeeeXQaF7u8zl+3YiCqEkJ7stzV+tvTtTPylzezXdAVi5GRcTqWzNgt06yDHvZoLCZcmSE8R1R56xejHFwIBBWcHC+w85NUJRsQfoadFDoH553ax8rZwRFIGSeOh3pahMfkFb2ggEg4uVBl 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:(376002)(346002)(39850400004)(396003)(136003)(366004)(44832011)(26005)(4326008)(8676002)(6916009)(6486002)(6512007)(107886003)(6506007)(66946007)(66476007)(66556008)(478600001)(316002)(1076003)(8976002)(16526019)(186003)(2906002)(54906003)(8936002)(2616005)(52116002)(36756003)(6666004)(86362001)(4744005)(83380400001)(5660300002)(956004); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: AWQZIz1Xpx/YkpyH906YoxVsS3NSZQCwOIusjC5Jp2zAtA7mMZwTfIU627ImlMQ+LXcz0ncOPs3NHueZj2E94bOXGjZ68igdmUOoUiJfBfdm22QPc4gj3iE3zKi7p+HRebsBac0gSpIBW2mq+oBLISqmxU4Kcvfy5+zNWMNQy1XMAo5yNpBO/R0kOI96e//ArRXLXwvOioQYAG0r/gUaEiL0f/2SUIArdSJ7DIAERWzcPGyE6+06KKrCR3SYBeKNi/k7uoy88xaIrf06wz/XYLfp8NcD7YpmwmRlaNU+/XKRzzteTHjx2q3Tw8Z383kEnGmE1/ue9L2SR2Op/NXHyhLG0fgIDtT1GWRxsXLsGbFAkqqa07n90ksnO/rQ7Gye/TkzhzL0/LMAiVj+X262tkpT+4vxTapm4LP96cjR9np9JMyphHaXOyThqd8AI7uZNHVWEjDkE/l05AsTEET4X+0sOP3L/z9lV65BaFjOi24HOL4DeQclySTy+mUgp+7nTFdAcgMRKULOxcAvkGhetChrdhW4Mao7eQeLVhrHu88vTpu9//Gw4S61Rq08NaIaBz0A5yWoJzahppVjKFUqA6JAXDKngdDIedrwG/9y0E3ofU5TI3Soezuw8UX0QoEf477K1L9fCOwdR0WzWBAtsQ== X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: 0b620651-775c-42d4-0ef5-08d86930ba62 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:28.2948 (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: 9R+zqzHqaRLKnEUvWBHl35xT5Sw+ZgqIw5UGniqj6FsFHLHofO7yH5ppPLeTKYoZrLMCHodqWQr1+EpKQVHCqXxb602zYeb6dkWXJKLeG50= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR10MB2831 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 Hi Heiko I finally managed to figure out what was wrong; the fixed-link phy was simply ignored. This is fixed by the first patch, though I don't know if that's the proper way to make this work. While poking around the code I found two minor things that might as well be fixed. I'd also like to do a somewhat more extensive change to dm_qe_uec.c: I find it very confusing with the qe_uec_priv versus uec_priv, so I'd like to just add a phydev member to struct uec_priv, remove struct qe_uec_priv, make .priv_auto_alloc_size = sizeof(struct uec_priv), and eliminate the malloc/free pair in .prove/.remove. It's mostly mechanical using coccinelle, but WDYT? Rasmus Villemoes (3): mdio-uclass.c: support fixed-link subnodes dm_qe_uec.c: fix indentation in uec_set_mac_if_mode() uec.h: fix COFIG_DM typo drivers/net/qe/dm_qe_uec.c | 4 ++-- drivers/net/qe/uec.h | 2 +- net/mdio-uclass.c | 7 +++++++ 3 files changed, 10 insertions(+), 3 deletions(-)