Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6808422rwd; Tue, 6 Jun 2023 02:08:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6gEnfnAnYYWZk673HKLwS+E/TrFXhq6bifd++Yd7jCBY4YyX7lzoVsmsBhHiYjKEvmswTg X-Received: by 2002:a05:6a00:1702:b0:653:6e5:2cd with SMTP id h2-20020a056a00170200b0065306e502cdmr1865627pfc.16.1686042492103; Tue, 06 Jun 2023 02:08:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686042492; cv=none; d=google.com; s=arc-20160816; b=WFzYS+qvMPV1Yjrk+PLg/EKXBBEOtcWaJ03/RlnVqgQilk/uggxKHexP3SFFu6JWTS +pnSqM+PLSD2xTf27XZq4HfUY74IDS0y4ACoepR6JGYg0282c7h0pLalwk21drf1oov3 3JhjoUrldl2+M+CJZeleOWZN4A0m3iWqcPWtI1XXgT8/9T56VMx6hhRlePO3b1nUVDx4 bs+19Q6ovh/E4FSytcdmrO25fQiWxX4+vcsz+irqzUoiZWAvTz1j98EI3EA2+XQy0fVv yMrnVWWidusbEp2DUQWCJIOd0/X0xAKzaE97cfQ/CDak/DLnIJ7LOI5H5is9/CkVKKzL hnIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date; bh=FKzsH7TWVlRmr/OWUFGwiC4MJ54EwhliEmEUFgKx8DE=; b=P5Ph9yuHEvHOa5pHx+jqRkK528KH/pfH9Zs8GHNmb7oCRqPXI5Il8VYN1Swkukb309 eJB0ieU0v005UgOsyyruuwqo4nvVQ/cT5zSVDGbTfjZuuVMklvavNu8t+Si4soLH39da TFOS3PV20iA6vYbLERgK0o26N/nlT2EaY4dU9dSE1syyYi6EBqYF7sab8obOpoMEO6Of ouyFC6qI8n6phflhnd+p3D6Sgw1jLFrh+D7cAnQnyek0nYRnlK9Oef+rb0dxtU8UtkWw Cdw+hrCVSJjADquMlXjbjMfvqFUu5SO+dtukKIV3fGto/J9vPTvUnLoih0BPVyxnT18n pe6w== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p11-20020aa79e8b000000b0064583a79521si5159255pfq.283.2023.06.06.02.08.00; Tue, 06 Jun 2023 02:08:12 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237162AbjFFIbj (ORCPT + 99 others); Tue, 6 Jun 2023 04:31:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237079AbjFFIbX (ORCPT ); Tue, 6 Jun 2023 04:31:23 -0400 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66086170C for ; Tue, 6 Jun 2023 01:30:24 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed30:a3e8:6562:a823:d832]) by baptiste.telenet-ops.be with bizsmtp id 5kVL2A0121Tjf1k01kVLNE; Tue, 06 Jun 2023 10:29:36 +0200 Received: from geert (helo=localhost) by ramsan.of.borg with local-esmtp (Exim 4.95) (envelope-from ) id 1q6S48-004ISO-MB; Tue, 06 Jun 2023 10:29:20 +0200 Date: Tue, 6 Jun 2023 10:29:20 +0200 (CEST) From: Geert Uytterhoeven To: Maxime Chevallier cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alexis.lothore@bootlin.com, thomas.petazzoni@bootlin.com, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Florian Fainelli , Heiner Kallweit , Russell King , Vladimir Oltean , Ioana Ciornei , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Maxime Coquelin , Jose Abreu , Alexandre Torgue , Giuseppe Cavallaro , Simon Horman Subject: Re: [PATCH net-next 1/2] net: stmmac: Add PCS_LYNX as a dependency for the whole driver In-Reply-To: <20230606064914.134945-2-maxime.chevallier@bootlin.com> Message-ID: <889297a0-88c3-90df-7752-efa00184859@linux-m68k.org> References: <20230606064914.134945-1-maxime.chevallier@bootlin.com> <20230606064914.134945-2-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi Maxime, On Tue, 6 Jun 2023, Maxime Chevallier wrote: > Although pcs_lynx is only used on dwmac_socfpga for now, the cleanup > path is in the generic driver, and triggers build issues for other > stmmac variants. Make sure we build pcs_lynx in all cases too, as for > XPCS. That seems suboptimal to me, as it needlesly increases kernel size for people who do not use dwmac_socfpga. Hence I made an alternative patch: https://lore.kernel/org/7b36ac43778b41831debd5c30b5b37d268512195.1686039915.git.geert+renesas@glider.be > Fixes: 5d1f3fe7d2d5 ("net: stmmac: dwmac-sogfpga: use the lynx pcs driver") > Signed-off-by: Maxime Chevallier > --- > drivers/net/ethernet/stmicro/stmmac/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/stmicro/stmmac/Kconfig b/drivers/net/ethernet/stmicro/stmmac/Kconfig > index 5583f0b055ec..fa956f2081a5 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/Kconfig > +++ b/drivers/net/ethernet/stmicro/stmmac/Kconfig > @@ -5,6 +5,7 @@ config STMMAC_ETH > depends on PTP_1588_CLOCK_OPTIONAL > select MII > select PCS_XPCS > + select PCS_LYNX > select PAGE_POOL > select PHYLINK > select CRC32 > @@ -160,7 +161,6 @@ config DWMAC_SOCFPGA > select MFD_SYSCON > select MDIO_REGMAP > select REGMAP_MMIO > - select PCS_LYNX > help > Support for ethernet controller on Altera SOCFPGA Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds