Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4487851rwd; Sun, 4 Jun 2023 06:26:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4vDg+ybGSHWyE4zt+GiKUjwzDUE7/gvwqTVO0HflaXJ7UWsSE/1xto5gZXuuFqsf8mM9Hf X-Received: by 2002:a05:6a20:7292:b0:111:52a4:7f7e with SMTP id o18-20020a056a20729200b0011152a47f7emr2543531pzk.28.1685885171990; Sun, 04 Jun 2023 06:26:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685885171; cv=pass; d=google.com; s=arc-20160816; b=lZu7pk/8mFl78gZ9t1hYqm0hLp5YSUJy8wTuy5FFUEalOzDk2eYm8mZuhAMHlmCLcf F2TS3RMOKbVr4rcQUZSLVmoXliWWaJUZDf9lnHZTb3BTydiqBMa3EjDBdGzogZBJ5VgF iPMzVUFUK5Qj1XgMthIszzeE44pulVPR8HJSAp4FJaXddYs/Ag4JY2nETf8LRumX78JG Q33piO/BrTOpwShUGQU+KN9zWK7Do3VMi5HSqLuSbZ/8LAceC9JTViK0CnsOz1nTDgHG o2jE0+4e8JtmFShPuI/tHtGIdDvAewWnUT4ea08VfWevHwH9jYcG9DZqZg1hbBok6gks uHiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=XxFo49ybuTfpddZUtYJZ63iLTBCwDcOWVYL/S1IUMQ8=; b=D8bMDatBUL4xw/HXIkirzePU8KqyGvGQHrLtgESSZt/mTRzEdWKsyVt9Xhj9XKK/uX jOh+RVv1ixRczAf7AL1DyhZU/U6v3gC0gt//gKXdU3u/uTRtcko6QLiMYWG/9P8IVuA4 SXz3SviG8CGD4iTMiNWyxn+D41ISCjoa+vtluIHItzsE4jRWHhGnRv2hCBxDHxEIaH5g cLAm3bLntmTZHUu2fEMTZ/ugpN/Av4uIQQAtfoc3FpxCzskFy6VvDWQjPCSanB3xytTq vcHoTdzsywJHePpcv+8MCQVa27ekNi9oCjzpVGQz4boEeKPn++eOfN90seJ91KZysS1w UIqg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=zmail header.b=hViB5voa; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.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 k69-20020a638448000000b00542b9f14ca7si3232358pgd.24.2023.06.04.06.26.00; Sun, 04 Jun 2023 06:26:11 -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=@arinc9.com header.s=zmail header.b=hViB5voa; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.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 S231796AbjFDNPc (ORCPT + 99 others); Sun, 4 Jun 2023 09:15:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230153AbjFDNPb (ORCPT ); Sun, 4 Jun 2023 09:15:31 -0400 Received: from sender3-op-o19.zoho.com (sender3-op-o19.zoho.com [136.143.184.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74FFDB8; Sun, 4 Jun 2023 06:15:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685884484; cv=none; d=zohomail.com; s=zohoarc; b=Jje0df8P4zbwlbDhGie+2XTBnM9Bx4U05TGMcsKUwz2F4tc2lfStfjc/kX6wky73w6yKQ0Ji1uG06ii8G+R1BmIbbmlNpTO+ZbshQnoQh2Wvm1CDK1FQuA4iggXMY11G7gxn87EgYqsO6YiYD3qyiT3v0PvzhiNlc+q1oTveytE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1685884484; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=XxFo49ybuTfpddZUtYJZ63iLTBCwDcOWVYL/S1IUMQ8=; b=ARbYLyMiA8dwgD+TSdxlbknWg2VBsHzu1jV8/jy9brYlxVeUWCIAogM8t5DFlMzAt3FNddMRpYlRXhP19nJbKWEC2WwmocrQYIAs8Kgaw0L5x5j8xTYYYipcguK2yl/mwITtf7nDs9TngZ3Y6pq4Mmm8pPFwuOM/kww8QBuKfB8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1685884484; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=XxFo49ybuTfpddZUtYJZ63iLTBCwDcOWVYL/S1IUMQ8=; b=hViB5voarrFviGYMJtj9R5ESpxU31WVKAvV8CNmBjxUKHuaAwPpnHWy7Ryogqr6S IbUzck8jaTvVfe6p3a4qoSs1tE5vjjAMVLHtlOUtvwb41OUtnwna1abkemGM9hf5zv8 wKOb8YTBgvDgdxmhcI6XIxQgGTTj2o+9CJMGYc8M= Received: from [192.168.99.249] (178-147-169-233.haap.dm.cosmote.net [178.147.169.233]) by mx.zohomail.com with SMTPS id 1685884483411181.65403632363302; Sun, 4 Jun 2023 06:14:43 -0700 (PDT) Message-ID: Date: Sun, 4 Jun 2023 16:14:31 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH net-next 08/30] net: dsa: mt7530: change p{5,6}_interface to p{5,6}_configured Content-Language: en-US To: "Russell King (Oracle)" , Vladimir Oltean Cc: 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 References: <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> <826fd2fc-fbf8-dab7-9c90-b726d15e2983@arinc9.com> <20230604125517.fwqh2uxzvsa7n5hu@skbuf> From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,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 4.06.2023 16:07, Russell King (Oracle) wrote: > On Sun, Jun 04, 2023 at 03:55:17PM +0300, Vladimir Oltean wrote: >> On Sun, Jun 04, 2023 at 01:18:04PM +0100, Russell King (Oracle) wrote: >>> I don't remember whether Vladimir's firmware validator will fail for >>> mt753x if CPU ports are not fully described, but that would be well >>> worth checking. If it does, then we can be confident that phylink >>> will always be used, and those bypassing calls should not be necessary. >> >> It does, I've just retested this: >> >> [ 8.469152] mscc_felix 0000:00:00.5: OF node /soc/pcie@1f0000000/ethernet-switch@0,5/ports/port@4 of CPU port 4 lacks the required "phy-handle", "fixed-link" or "managed" properties >> [ 8.494571] mscc_felix 0000:00:00.5: error -EINVAL: Failed to register DSA switch >> [ 8.502151] mscc_felix: probe of 0000:00:00.5 failed with error -22 > > ... which isn't listed in dsa_switches_apply_workarounds[], and > neither is mt753x. Thanks. > > So, that should be sufficient to know that the CPU port will always > properly described, and thus bypassing phylink in mt753x for the CPU > port should not be necessary. Perfect! If I understand correctly, there's this code - specific to MT7531 and MT7988 ports being used as CPU ports - which runs in addition to what's in mt753x_phylink_mac_config(): mt7530_write(priv, MT7530_PMCR_P(port), PMCR_CPU_PORT_SETTING(priv->id)); This should be put on mt753x_phylink_mac_config(), under priv->id == ID_MT7531, priv->id == ID_MT7988, and dsa_is_cpu_port(ds, port) checks? Arınç