Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6912804rwd; Tue, 6 Jun 2023 03:58:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ck+e2EP2rx166+7Es+5L5CjcaFzKlqg7fNBoxUIl1YCIWCIi0qacrakeU5pW/s1TNOvkc X-Received: by 2002:a05:620a:2811:b0:75d:435c:c64e with SMTP id f17-20020a05620a281100b0075d435cc64emr1640275qkp.17.1686049080399; Tue, 06 Jun 2023 03:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686049080; cv=none; d=google.com; s=arc-20160816; b=lDPJTMpZKqu9gVpgM7bU8elafNGJUCFrUpwFogcP+ikVUuMLIg1Qz3c2XFPeMWPK8X OwgoHatHVQB+Tlee9wrbhR5WlFxA69QdkEJEnOfw4daf0/Kq/Cty6LTIKqqE/2s5rj9j 54J6MZ91OuuWUc2d+Mb/QFvgudlNvcL/YhyXKUdp2smkaHVb8/gsMhy0wzovqYUGMqPV i4N2pBhlILSZA1p9pfqqO9P/dH6q6ZpRp8zTMsXCnoZeYAzRGF0GyLn40KYFii7c6Lo1 5GDKaga53p8d9Hveq+IP6/NoEsiRUKuIj2jN7k7Y+qSm8SB3vhAVqwS2Jg9E+HEn5e4s mE3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ioAQcLHmFe5lShDUAfyfXBw7PEQ13xYiSgOqhDs0xDo=; b=tNdaueKQwkmJ0h/9W6Yr/rQYN4yT7b68MLh5M65F6rVun7uixTDRxvpfY1HwlKuIbT GefkfwBmHYaQx9YauBs96HYoYQXJTOo+fl+NzGcr3IbpizZ2pSZT3yzWVuW+e5v+PUTL 06s5Z1wrM6FaZRvRlmzFIoyOtzjgR+oeRWXvirNJDTT4z0OO/G89ho/KsvuLufwlY3h1 a/4l5JpAgVDg+XNi2GuAFothRNzUgcjdITbJlFKyy486WAmKYY3po9sH3PTe/kILAhBS xl1C1W/ZXv0oU/6lAJY/01LmUMkQ6pQN2lw5HHlgFD8BvgzdXLey+2th+jbl1K5W2BgM ZuPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=bk5CItPE; 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=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x7-20020a05620a01e700b0074e2a00ebf5si3391364qkn.37.2023.06.06.03.57.46; Tue, 06 Jun 2023 03:58:00 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=bk5CItPE; 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=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237194AbjFFKqz (ORCPT + 99 others); Tue, 6 Jun 2023 06:46:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234915AbjFFKqT (ORCPT ); Tue, 6 Jun 2023 06:46:19 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72BFF18E; Tue, 6 Jun 2023 03:44:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ioAQcLHmFe5lShDUAfyfXBw7PEQ13xYiSgOqhDs0xDo=; b=bk5CItPE2XxteW8CONPDrQoKne Njhw4e9GGxXqsJaMSzMU0RuGa/1oG3eKoMLeT1jYmUQ1iqQy4uEul+HXWDSWhoQIKMQlvj4fClfDW vHEXJifq3ecdxI38YesU/kxoJCCBteV0d1dCIG+j/sUF/QhMhEeL+YcXaBH3jRK5Zh5aCi9AuiKo1 +//ZpfzNX0GT30XCVQhcRonJaKddPG9kgbdttsolWGkcgjBzC3lO9BQ2OZvjxzLIj7StI95tebPz4 g8m8MquDOFiU1aQ29l7IIYZsjao+XxKXlbz9r0BhbnqMwMsDcAqi8XevXq8SGTHr7O+UZ3Qpi/QQF 5e4K2lsg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:48520) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q6UAd-0005Vy-Pi; Tue, 06 Jun 2023 11:44:11 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1q6UAa-000751-Ly; Tue, 06 Jun 2023 11:44:08 +0100 Date: Tue, 6 Jun 2023 11:44:08 +0100 From: "Russell King (Oracle)" To: Geert Uytterhoeven Cc: Maxime Chevallier , 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 , 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 Message-ID: References: <20230606064914.134945-1-maxime.chevallier@bootlin.com> <20230606064914.134945-2-maxime.chevallier@bootlin.com> <889297a0-88c3-90df-7752-efa00184859@linux-m68k.org> <20230606121311.3cc5aa78@pc-7.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, Jun 06, 2023 at 12:35:23PM +0200, Geert Uytterhoeven wrote: > Hi Russell, > > > diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > > index fa07b0d50b46..1801f8cc8413 100644 > > --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > > +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > > @@ -940,9 +940,6 @@ static struct phylink_pcs *stmmac_mac_select_pcs(struct phylink_config *config, > > if (priv->hw->xpcs) > > return &priv->hw->xpcs->pcs; > > > > - if (priv->hw->lynx_pcs) > > - return priv->hw->lynx_pcs; > > - > > return NULL; > > } > > I think the above hunk is wrong, and should be replaced by a removal > of the call to lynx_pcs_destroy()? Indeed, and wrong file too. Thanks for spotting, I think we spotted the mistake at almost the same time. Replacement patch sent. It'd be good to have the patch thoroughly reviewed to make sure I haven't missed anything else, bearing in mind that I don't know this driver inside out and don't have the hardware. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!