Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3471070rwd; Sat, 3 Jun 2023 06:03:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7w8zac3RUI3QiheQRruEQx3g+994ANXQBiI/WNF9LVa3VVmCG6Oa1Lae3QwQG839Fz4o+m X-Received: by 2002:a05:6a00:2e1a:b0:64a:9090:5147 with SMTP id fc26-20020a056a002e1a00b0064a90905147mr20225935pfb.10.1685797393434; Sat, 03 Jun 2023 06:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685797393; cv=none; d=google.com; s=arc-20160816; b=tBwtJFoI3+PSqnkDmTNvoTn93MqCxqDOOMQ+wAkuV7GtLrPOe+S/UUS8HvITuUR17m zwY4yJ6LC7OCzL/Xi8rUxVQxBxSxpXsZxRHBIY3mWWI/cRc7y2S9xb60wvE5Ha/ilSQo 2rv4R5JQYnDbwSs4r7aQ2cndMwi5eO6A8oYcF1nx6t/pFCpy9H9GmwDcI1i+laUSzf5E 0ykSz3BcdrZqi6l7qTKFOQS4gI65I4bWrPeGSvezitqwYzN+gtLtDYeVOho4ERRFhiUn dw+GX4AwgqqzY/KlFOu5ur3tC2c/7gUxnCVvW8e9aHjAKnPffxUkuBNOzmfmgzge0cwq JafQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NdKc/jMqGPx4GztP2rKQEhUYT+Xz1wkAFWT6ucRh7C8=; b=C06QaOCNF1JTcCIFP3PCdwzC3X8QGwYJebniIlfufugGOkd+eXk0S7CbIXSI75FsdE kX59en2fPPmfw8Ti7GDkvvNmM5BSttyJZbXG8y+0UG+NqzJEc7Gs9y2mY2sdPahJJ1h/ wPMRgvk763hNwKJRRjwY5JMr0E0KX6/sztPHzba36RZxid29lbg/uSzcVFJ74fnDT0Kl C1FInjQvK/XeBdIoS4e8c4OplesCUBJv6fuWVsDxdSVuuyBOgjPFznAr919SFw82wZ6S /q0Oyzg8FS7jpsRje3nUEAHmlHXGjpTxOaq5qBxhPSQ0aW1BOY75pV1aigw0q5NmH7qt aj/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=P2L+9i8t; 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 q2-20020a656a82000000b005286be44da7si2695779pgu.706.2023.06.03.06.02.44; Sat, 03 Jun 2023 06:03:13 -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=P2L+9i8t; 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 S234258AbjFCM1N (ORCPT + 99 others); Sat, 3 Jun 2023 08:27:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbjFCM1L (ORCPT ); Sat, 3 Jun 2023 08:27:11 -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 60480A6; Sat, 3 Jun 2023 05:27:08 -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-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To: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=NdKc/jMqGPx4GztP2rKQEhUYT+Xz1wkAFWT6ucRh7C8=; b=P2L+9i8tmKVnpGy9CqOUIgxeu0 jy2PAiKhDLB9S6If9z/dVeyWCDAJKL82PCEWUOoDZB/xTNfdx7Duowb0pEgh9y7dmmuGgNkHOp9CS QghaBMsB5zwQFk7x0KRw/H11pn0N5bg2h7XeRbc4u4CsCPcGO4ivlNJQ9aODrZmtEGnGMEdkuMrKU TigbbfjiWTXCG330nHW2bFL2GvGo+IZNaacpD3mAIXvF0xkgO3sueYhEGUR4S46vLFxBwE0ZNoIvv SoqJ0kOX70n+Wn79QQzyIF+nUwCeRTo9SO64U4OtRKIuSENSrPpOHmYo+Y6936SdHTrSOG4fA5DK/ m+j9+J+w==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:47258) 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 1q5QL8-0001Fn-DH; Sat, 03 Jun 2023 13:26:38 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1q5QKz-00041Y-AO; Sat, 03 Jun 2023 13:26:29 +0100 Date: Sat, 3 Jun 2023 13:26:29 +0100 From: "Russell King (Oracle)" To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= Cc: Vladimir Oltean , Sean Wang , Landen Chao , DENG Qingfang , Daniel Golle , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Richard van Schagen , Richard van Schagen , Frank Wunderlich , Bartel Eerdekens , erkin.bozoglu@xeront.com, mithat.guner@xeront.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net-next 08/30] net: dsa: mt7530: change p{5,6}_interface to p{5,6}_configured Message-ID: References: <20230522121532.86610-1-arinc.unal@arinc9.com> <20230522121532.86610-1-arinc.unal@arinc9.com> <20230522121532.86610-9-arinc.unal@arinc9.com> <20230522121532.86610-9-arinc.unal@arinc9.com> <20230524175107.hwzygo7p4l4rvawj@skbuf> <576f92b0-1900-f6ff-e92d-4b82e3436ea1@arinc9.com> <20230526130145.7wg75yoe6ut4na7g@skbuf> <7117531f-a9f2-63eb-f69d-23267e5745d0@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7117531f-a9f2-63eb-f69d-23267e5745d0@arinc9.com> 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 Sat, Jun 03, 2023 at 03:15:52PM +0300, Arınç ÜNAL wrote: > On 26.05.2023 16:01, Vladimir Oltean wrote: > > Ok, but given the premise of this patch set, that phylink is always available, > > does it make sense for mt7531_cpu_port_config() and mt7988_cpu_port_config() > > to manually call phylink methods? > > All I know is that that's how the implementation of phylink's PCS support in > this driver works. It expects the MAC to be set up before calling > mt753x_phylink_pcs_link_up() and mt753x_phylink_mac_link_up(). First, do you see a message printed for the DSA device indicating that a link is up, without identifying the interface? For example, with mv88e6xxx: mv88e6085 f1072004.mdio-mii:04: Link is Up - 1Gbps/Full - flow control off as opposed to a user port which will look like this: mv88e6085 f1072004.mdio-mii:04 lan1: Link is Up - 1Gbps/Full - flow control rx/tx If you do, that's likely for the CPU port, and indicates that phylink is being used for the CPU port. If not, then you need to investigate whether you've provided the full description in DT for the CPU port. In other words, phy-mode and a fixed-link specification or in-band mode. Given that, you should have no need to make explicit calls to your mac_config, pcs_link_up and mac_link_up functions. If you need to make these calls, it suggests that phylink is not being used for the CPU port. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!