Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0C5DC6379F for ; Mon, 13 Feb 2023 12:28:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231131AbjBMM17 (ORCPT ); Mon, 13 Feb 2023 07:27:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231171AbjBMM1z (ORCPT ); Mon, 13 Feb 2023 07:27:55 -0500 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 335CA5FEC; Mon, 13 Feb 2023 04:27:52 -0800 (PST) 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=2Kt/ROz9GCT+psVlOSyjKfrnfI3lyNaAQ9FWHqO+GUY=; b=HdLK7ImOrfYSnVEnuS1Zbhl/tx 4kKSVabjF3tnKWtjOYv8tqBImy0Lh1rqP/nXivw3hMngCPhDJwsV4OojcLJZ1gIh3kVcth9XCidsK 7fCNtC77k2+Q05lCOkiLv/fL9RtCeZmO6rVgY6W76NBI2T0pcyeyt6yrMVbskGS788Ca8SAMCNqeN ifm6/h/8/qE7hLdaVrKdX4tmuM6IT6J9iRCyza/hPBtSu2TzsWfNmVbRP8ZcLUfj9Izfp8AkTzq7G apjcxu/L2Zn0bj4pUfQhWFjCMgx78cfDI3Lsulh5rjFzPcsj0X30wa977LA71bmpextg6Fs21Jpzu xJlJMnIg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:33454) 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 1pRXvx-000428-P2; Mon, 13 Feb 2023 12:27:49 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1pRXvw-0002xh-2E; Mon, 13 Feb 2023 12:27:48 +0000 Date: Mon, 13 Feb 2023 12:27:48 +0000 From: "Russell King (Oracle)" To: Daniel Golle Cc: netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Heiner Kallweit , Lorenzo Bianconi , Mark Lee , John Crispin , Felix Fietkau , AngeloGioacchino Del Regno , Matthias Brugger , DENG Qingfang , Landen Chao , Sean Wang , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Vladimir Oltean , Florian Fainelli , Andrew Lunn , Jianhui Zhao , =?iso-8859-1?Q?Bj=F8rn?= Mork Subject: Re: [PATCH v5 11/12] net: ethernet: mtk_eth_soc: switch to external PCS driver Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 11, 2023 at 04:05:18PM +0000, Daniel Golle wrote: > @@ -4582,6 +4583,7 @@ static int mtk_probe(struct platform_device *pdev) > if (!eth->sgmii) > return -ENOMEM; > > + eth->sgmii->dev = eth->dev; My comment on this appears unaddressed (and not responded to either). > int mtk_sgmii_init(struct mtk_sgmii *ss, struct device_node *r, u32 ana_rgc3) > { ... > + ss->pcs[i] = mtk_pcs_lynxi_create(ss->dev, regmap, ana_rgc3, > + flags); This appears to be the only place that sgmii->dev is used, and this function is only called immediately after the above assignment. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!