Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp986309rwd; Wed, 7 Jun 2023 09:22:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4phcNzHK0MxlLfztHqm1WZhUfB4voyIDjgsprsJ4CY2ecCm0zsuXkzs36KbQZT+cWfHJja X-Received: by 2002:a05:6a21:3714:b0:10e:2fd5:5106 with SMTP id yl20-20020a056a21371400b0010e2fd55106mr1327216pzb.35.1686154977447; Wed, 07 Jun 2023 09:22:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686154977; cv=pass; d=google.com; s=arc-20160816; b=zXQy8gL6AMUQ4VYryfAvZeW78jisWrNQ688urFyX3nxpJtZsh/ggmoR16ZVbc8tTW9 NSLxcS0rS0DzHVHTav1V9GQ96nV0iVdON4rr6vOcLCWLDm8RF8YALOnP6NgPcnxTk1fh kY2rKGuXl4/SOyxgtvbeFDG7Jt9NaPoVyEzgyuOCFZV8utYuJ0ndjtgDWl7WtkuckvH+ WZDxxRsf4AGIOGs1OE0GWVm1DoRos9nu/GVIsd+SKPI/oK0rTPK8pqaB+IvikmFGA1dr twLu6U2XCS3ia2ulW4IMh07qh7kiSH3h7nwUyz5KeYI+31f4gqOAyU4v9Jx7FJbSczpM EQBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vAjBODfWdZ0cEgqVEGbuqO/t+lqZsEnq+W+26Tu3W4w=; b=AMQkhNEPdVa/pwqjN2UyyMR0MquWeilBpcqctRBs/IMyE5afLO8VeEh5tRwdKK5UHH riMTDW10iKFhLOmiplcmmkIU0BQno6bE8HLdlIyue56bpkeRbzEq0nyAnggn2UrSJLIL SMlmjeiBviHiGrYvYkYzu806WWn//lhUBS23VLrVhhZQYcFUjdAa+i0XUAetWBJZVEPE CgJkTbl2FWZV8v0Vxlx2QWmtRSGo+PUvoeRTlbAU0iYes494yciJNDjVtbUJSyrMg9SC P9rSt7sUDEnH2XAj7+Icx81cpgi7z7lzP6EyLRYQcQSixENNw43goXufl5FJjR1j6wER Iz8A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=C7xAA+yd; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k191-20020a636fc8000000b0053439ea59fdsi9316515pgc.19.2023.06.07.09.22.42; Wed, 07 Jun 2023 09:22:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=C7xAA+yd; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241294AbjFGPwe (ORCPT + 99 others); Wed, 7 Jun 2023 11:52:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235607AbjFGPwb (ORCPT ); Wed, 7 Jun 2023 11:52:31 -0400 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2128.outbound.protection.outlook.com [40.107.95.128]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 744C41988; Wed, 7 Jun 2023 08:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VrbPKK/vYtb0SVOM1AUSdyrHAKMWpvWGiVwq9TR+5Qi25DpxWYFh3OI/F9qa40lG51gNHtGeci+dPAsFLuDi9jHGN1PsjTFU/76ZDHJUGn6a2xb7Y/ju39jIOFtx40p95cCXzIAoBPhED0pNKaS4zbHIVckbicRzTerYjIVizfxkTzxSMRtcxo8hYNk0B444Ep74PKoGWGZMwbFzEZr0X9CAoDxk8Qg6KkiU1aOGZJca3Nq4OAHwhXHqoWYGtwpm4u/uC//G/Lz4gN3JGLMlfXU4Rt26O0C1ir/X3O86+DSJC2nk0BjexkePJH7FN5DkWslYD+zBUFwxZmkcPS9mfQ== 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=vAjBODfWdZ0cEgqVEGbuqO/t+lqZsEnq+W+26Tu3W4w=; b=EJXWFs4bC4QFwUOBbRBFf9zjoU9Torj6nD+i6QIWVR/1c1q8vs4UAX8uWSJ11sUOn5m4UmtnMtglqH0mJ/6sVQn52lx/GRTEb6p+wDLjGL7kcVxrmRmEeGz7fnmjyMmxwNDaBIGkA4YPdxJYexUB0lyzPAtol5zn/vvcBjYlZnAP3dI3MO8IEmUGcGdi8WyVdMUJ/99EVQ3OUrNpfzQiLCBSmz+q0VESkQR79Y2uBiZ+VK3uA/iWSHbMDA+1Uc/TVaMxhuQFD3+RwpeEnKJ8na0t8J1hgYrAvxEWc00JNpvZeh2u8B/y+64p7pZvo/iqhk41n1MtsbiER+QG4IdSKw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vAjBODfWdZ0cEgqVEGbuqO/t+lqZsEnq+W+26Tu3W4w=; b=C7xAA+ydcS/RBYZCLcNqwneGxwDXiTPmBeIJmzVl/9hTA2TQ/EVhIFNQCG8AqXwZaln/UwwL4eX9hRpWCjf/WVDI4b00deaDXtxcihAYazCZhtyTIO4/P/eC73m2kMk/YQztYTGGq14IYOsOUV3dQpdKdnZFoM79Q7D1RGJfiyw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from BY3PR13MB4834.namprd13.prod.outlook.com (2603:10b6:a03:36b::10) by SN7PR13MB6302.namprd13.prod.outlook.com (2603:10b6:806:2e9::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.28; Wed, 7 Jun 2023 15:52:27 +0000 Received: from BY3PR13MB4834.namprd13.prod.outlook.com ([fe80::9e79:5a11:b59:4e2e]) by BY3PR13MB4834.namprd13.prod.outlook.com ([fe80::9e79:5a11:b59:4e2e%7]) with mapi id 15.20.6455.037; Wed, 7 Jun 2023 15:52:27 +0000 Date: Wed, 7 Jun 2023 17:52:19 +0200 From: Simon Horman To: "Russell King (Oracle)" Cc: Arnd Bergmann , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Maxime Chevallier , Arnd Bergmann , Christian Marangi , Jon Hunter , Bhadram Varka , Samin Guo , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] stmmac: fix pcs_lynx link failure Message-ID: References: <20230607135638.1341101-1-arnd@kernel.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: AM3PR07CA0075.eurprd07.prod.outlook.com (2603:10a6:207:4::33) To BY3PR13MB4834.namprd13.prod.outlook.com (2603:10b6:a03:36b::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY3PR13MB4834:EE_|SN7PR13MB6302:EE_ X-MS-Office365-Filtering-Correlation-Id: 9d9f4182-5338-449e-891b-08db676f314a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wu8c71tazx6Znc0j7wlMYIcR53VoGPZiZSir7c48wbwIym6IjSOtoFMdSV1eSqLBNN0Uum6QQQ9QCQ/3+Igx6os6BlIK9efQyJu4oudmSlTPtSBkj0whK14xEyq678HZKXanwzGYmWgSFkxwioda7wG5RvThq8Yx0amQwyXAW9Z4hBkVO6kbrKS4grPq2Jvntu512Mt/f+RLUZJA+R1pSUlkJZoeuTffVCEJW8iFlNEs74xZlOV33FdgkJCXujOsDtuWx3fhZX4AWjWwrfssiqWG8qLG+w0NXh69rxc3/lKWPdbX8/bbb8wNBsPErojLyYqD/2rCEVYmslZm0tGWS7zDqUGT+6BnvC6ogUyBUbaB6Cbjn4XljNasBQLjOjqBh/9inXQAMhvw4VlwxuByPgJ4s864upoLDMlfF/GT3yK3ykC/VmaV9TuOUdESIMI+9U8PN42ENpfLRxYYdUZtZUYtum2rHPbDG5py1Jgomf3qTPJS5Q4FHjXt4l0rwL1lALqFxOSLIszMuDoRN+Qp5w/b8ujiN5lLF8n4f1aL+qc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY3PR13MB4834.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(39840400004)(346002)(366004)(376002)(136003)(451199021)(54906003)(478600001)(5660300002)(8676002)(44832011)(36756003)(86362001)(2906002)(66946007)(8936002)(4326008)(66476007)(66556008)(316002)(7416002)(6916009)(41300700001)(6666004)(83380400001)(38100700002)(6506007)(2616005)(6512007)(186003)(966005)(6486002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?/bF8syT/pa0xNk/3bh8dx03kaljdHuQu9FNy844oacEGEqHxhD00n2Bi4+L6?= =?us-ascii?Q?2I67xsUwKWHKrO2nf8u95T8yjsjj2LZqyJvnZM4JiRmaOjNkctbo/VAEO9SG?= =?us-ascii?Q?evx8EaGbqbpbCTxdMluKHYjDJ8okaGFgCxN2QAuYoAne07aOhVv4a5VGmtQn?= =?us-ascii?Q?MrWgnPaUTk6/X+fh4ABi9ZSQMnN1bCAOrXOxBmRzFOwYPZReiqzi2zT9dAUJ?= =?us-ascii?Q?iQbDLARKUOexcO80a0GpA7aoUhl8OD/k1p1hP5P0UNyO5vianG6BQyu1Fny6?= =?us-ascii?Q?OFpe7vddPCiS7KXtGDIdIvxSR2sDGPiJqdcfet3LRwSUVwuqD6Z1DWMu47OW?= =?us-ascii?Q?XwbDE7LAxdgKbSIaNkw48tv4oohA3A627oy2jWQ5XvIUuAGUaLwkkRmlaq1r?= =?us-ascii?Q?ol9YoyDC6hxYTruzY9U4/gvn1FUtcmUQ9ZId5eypO1Q4arRGgqMCS5ILEwZr?= =?us-ascii?Q?bh94yDzSbdCUxFrgBkK5JiycD7de81HC3Bzy3sG28FwfVExfYkKAqNZ8bMcQ?= =?us-ascii?Q?V3dv/bYXpapwlP+YBHXYV7+VxtErzmRKossxq2s/BjU7Mif5VpPNCSmz40DY?= =?us-ascii?Q?kArG6pBnsJa5p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?= =?us-ascii?Q?pqSxJGXDdtBtum4HppLHJf5VSMV5zlL3lR4Qek/f/gKUjLbfqHXrcCUKYuna?= =?us-ascii?Q?hXGBwE0mG8iCWbSse3NZZPhA7R6lmKKeJkxfKJQMOKNDNI3Jpx+Tt3N+PXSS?= =?us-ascii?Q?/xoHxdrhsdMILKhX2tbyeXvNf4iNJ4zAOqPPKaVIA2qttxnI2jma2A2D42e0?= =?us-ascii?Q?LMmE/w=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9d9f4182-5338-449e-891b-08db676f314a X-MS-Exchange-CrossTenant-AuthSource: BY3PR13MB4834.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2023 15:52:27.0765 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Xq3a9JN528NXtzcv/Mf5le5DeftEI87i+na1tYJAr8YR5bEmTPJ9NNDU86ZVMDhXbXm04WGJWASJCHkZmQ1RDPX9/91Nf/ywSisIt5adtBc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR13MB6302 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 07, 2023 at 03:12:00PM +0100, Russell King (Oracle) wrote: > On Wed, Jun 07, 2023 at 03:56:32PM +0200, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > The mdio code in stmmac now directly links into both the lynx_pcs and > > the xpcs device drivers, but the lynx_pcs dependency is only enforced > > for the altera variant of stmmac, which is the one that actually uses it. > > > > Building stmmac for a non-altera platform therefore causes a link > > failure: > > > > arm-linux-gnueabi-ld: drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.o: in function `stmmac_mdio_unregister': > > stmmac_mdio.c:(.text+0x1418): undefined reference to `lynx_pcs_destroy' > > > > I've tried to come up with a patch that moves this dependency back into > > the dwmac-socfpga.c file, but there was no easy and obvious way to > > do this. It also seems that this would not be a proper solution, but > > instead there should be a real abstraction for pcs drivers that lets > > device drivers handle this transparently. > > There is already a patch set on netdev fixing this properly. Yes, let's focus on the solution proposed here: https://lore.kernel.org/netdev/20230607135941.407054-1-maxime.chevallier@bootlin.com/T/#t -- pw-bot: reject