Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp565511rwd; Thu, 25 May 2023 00:13:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4TX7+EXWFozJaYYYv8M/08IlQkfqjzDp/zJwumNBuD+wrjO5xdGjGRbxlLXzNAVhRrQf/A X-Received: by 2002:a17:90a:71c8:b0:24e:2248:31c with SMTP id m8-20020a17090a71c800b0024e2248031cmr761002pjs.22.1684998825133; Thu, 25 May 2023 00:13:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684998825; cv=pass; d=google.com; s=arc-20160816; b=rhS2nv6gHihKWdGKZ+9T5dOiOlZGzJT8I7lswdB7S/fJgkl7Rs5cDGnOa9oXeIIHiP Qg2UCxWEgpW3RExysd26nDk6zxLLRBPoNBwvb/ZQFLugDEnbEmQQ7U6geP9rd57OdakS 2Oo3GZgS1Bc4kLYbgpXvf1ACYVf0qlwLBAIMftgWNhxuAJAJ8pV5JVCNg/oA49oBc/B3 7fkUCFDlPp6S+K+Wmy0Y1iLIaQ+o79UKhklyCXudwcreHGrN67izX4sxejJ6MiYyWAOV nkBOVtcNT2y4mJKBo7pTRCxgXucN6st4110jYBwYW/969SWlGk9GZ9kK/LhaT0h4McoA CARg== 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=QmWADVtt1bAIDiV+lGyZGiUZ+bZgxA+uS3KFDsIT1TI=; b=tpaHQ1nGwV1aAQ3BXCW9nmNwWIr7vsoetNFx+UUTisZa1RXkmoHF1VYfHIWjskIDLK 3hV8Yt+9OgKbVN1VFCQkCnMSvJmwVCW0/kIyNWo0eHmNuanr7TOiXTMuMeVSRJNopfBG xv6lxTDIkcrKdB1+eatmKdkdrAxrR+dlCxGX+FoEBz5Cnox6udjAqfUfG8FMWoQ7onUa pO7PwWLvAVbRrL3N7eDs6eZpXkF74IhuO4kO1z4xpJ+bU45IlN/QqASTdF2kLO4bbSBs Y8ZaOfQPKT0iJkioj9V6fJW8BH2cAXw6fed8n4tpkxkmny1LNEEXmsXdRIED5Kjtcb8y +TmQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=zmail header.b=HBL2Hxc6; 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 pt18-20020a17090b3d1200b00244883db2c7si3187379pjb.99.2023.05.25.00.13.32; Thu, 25 May 2023 00:13:45 -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=HBL2Hxc6; 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 S234763AbjEYGu6 (ORCPT + 99 others); Thu, 25 May 2023 02:50:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230265AbjEYGu4 (ORCPT ); Thu, 25 May 2023 02:50:56 -0400 Received: from sender4-op-o10.zoho.com (sender4-op-o10.zoho.com [136.143.188.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB1631B3; Wed, 24 May 2023 23:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684997412; cv=none; d=zohomail.com; s=zohoarc; b=Q6tJGyb1DqPzT7MCeAIMcBQWCjs4JwfGu7nbsd7137sieZy6Sp3fGl8ZRV6oMVOpban4TFv4Q+ZdNY59bzgsWjNQwQQm/uua1bSKu28CEqCwQ/YmfcI6zyY3i3KAP2dqj7gvtPMNbhNoLFAXYGImrEIafrCSh283DyRMYHSm4W0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1684997412; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=QmWADVtt1bAIDiV+lGyZGiUZ+bZgxA+uS3KFDsIT1TI=; b=Dlqo2DyiJIMcTX9m9haJCPBk99OoXEetg/OGfW8D6B6toxUpp3NPJde9NzwB/xX89yMBetlFYckMTO0CE4OMCOfGarlu8KRaaeqCCdnIt4j0+0vBkKudgK6QQGPpWJ0nWwWGnt2BaNhOMjf2YEFKCgknXY4tI888OH9ChDTgqWA= 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=1684997412; 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=QmWADVtt1bAIDiV+lGyZGiUZ+bZgxA+uS3KFDsIT1TI=; b=HBL2Hxc6VzTLaYZitkUWm1IU23e+z20GO7Q2tKeV+gTuVo2gcIzH1VmlOYhWPDxK 7mO4sCjV6mavxS+wCFAn609L/ufFozIefkjLuDsUVMZEWJFgcL4mqjzb2yyV74WqOOL BmBvNgEl6k2svXU4FNUFOZQwquL/lGQbUSd0N1qA= Received: from [10.10.10.217] (149.91.1.15 [149.91.1.15]) by mx.zohomail.com with SMTPS id 168499741040714.054183633237926; Wed, 24 May 2023 23:50:10 -0700 (PDT) Message-ID: <576f92b0-1900-f6ff-e92d-4b82e3436ea1@arinc9.com> Date: Thu, 25 May 2023 09:49:58 +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: 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 , Russell King , 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-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> From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: <20230524175107.hwzygo7p4l4rvawj@skbuf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 24.05.2023 20:51, Vladimir Oltean wrote: > On Mon, May 22, 2023 at 03:15:10PM +0300, arinc9.unal@gmail.com wrote: >> diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c >> index 710c6622d648..d837aa20968c 100644 >> --- a/drivers/net/dsa/mt7530.c >> +++ b/drivers/net/dsa/mt7530.c >> @@ -2728,25 +2722,20 @@ mt753x_phylink_mac_config(struct dsa_switch *ds, int port, unsigned int mode, >> goto unsupported; >> break; >> case 5: /* Port 5, can be used as a CPU port. */ >> - if (priv->p5_interface == state->interface) >> + if (priv->p5_configured) >> break; >> >> if (mt753x_mac_config(ds, port, mode, state) < 0) >> goto unsupported; >> - >> - if (priv->p5_intf_sel != P5_DISABLED) >> - priv->p5_interface = state->interface; > > If you don't replace this bit with anything, who will set priv->p5_configured > for mt7530? I intend priv->p5_configured and priv->p6_configured to be only used for MT7531 as I have stated on the mt7530_priv description. Arınç