Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6119017rwd; Wed, 24 May 2023 10:59:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7PHxEtcRGEkllJaLAHb9xCB7Cq5yYZDzGtvbnl0aJra9+67QzX+PL6KMx5wNbD2JGA5bJC X-Received: by 2002:a17:902:d10b:b0:1ae:622c:e754 with SMTP id w11-20020a170902d10b00b001ae622ce754mr16538475plw.68.1684951173737; Wed, 24 May 2023 10:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684951173; cv=none; d=google.com; s=arc-20160816; b=raqH74KzsU+kzQm4559EnwOoz3qIMVBdOQKbLR2KhfNqwM7szuqVjRs3jVnwLb6eIO R+02djQzh6n6lYAVEVwyMeoa0zbHE4Jv4WGTlHrZQE5qMC7yExXjUT2ZYlMGxIwYJeJ6 foY+xV6PbMszynij5gbwEK42rvxI87WC0azmnbcJzpJLcyNXLbZ/YnV2q1kGP8t24Fbx 0FYKF3rjsnovystOtT8hGT0p5HyxrxyyKEwBWJPh0tPITtKHL9XhV199gqftFTjQoib2 qwpKJdEyggQWrCG4weerzpWs49kB9fMERR83HNwW+rEdFsYYCqGV1FRlfIN8dOuzxJig iz+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KXu0ixlx8Bs2sZSoysi/IhJBHkMW10MSkaolKltVuIc=; b=p3ZztDf4L5Snx4uvZRBmBLxcvzWYEdiYKkpV8iu0rpGTgI17iXPWqfjQ09AM5vrvoX /1TXgsOxGnVrtY7JSFstIVyLuocVzeNhNog1Gx07YSX+T3LibawyfObQfmBek4tSNnBH fJ6Mzyvu2YRvRLWrUlYlAYFTMftbU81hJaRoaCl6LLSJ+hh8mAStcElVv/DJbbno7zCd Db6yOX3CK2I9577ZYdfIzN3q5aIKmxnEOTKZZaN4FkbF0zc0UVeBoEVLb8bnq4nfnpxM Jh9xV3Ry0VCZRk7blWqF3wp93aW6ZnittSOXCz5QBuDeRQuMpZwFtzluh92Erks+49l+ yASg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=mnEHgyY8; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a170902edc700b001a1b776489dsi8461433plk.300.2023.05.24.10.59.20; Wed, 24 May 2023 10:59:33 -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=@gmail.com header.s=20221208 header.b=mnEHgyY8; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230219AbjEXRvQ (ORCPT + 99 others); Wed, 24 May 2023 13:51:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjEXRvO (ORCPT ); Wed, 24 May 2023 13:51:14 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1065B6; Wed, 24 May 2023 10:51:12 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-30959c0dfd6so1111243f8f.3; Wed, 24 May 2023 10:51:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684950671; x=1687542671; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=KXu0ixlx8Bs2sZSoysi/IhJBHkMW10MSkaolKltVuIc=; b=mnEHgyY864hpBjo7R5SdoPjJ7JaKoORJvAFOHIYOSexsbbh63yxp4u6N8189wW99WO aA/jkEaSFqPnDDQzJytp7oUWre0qxSomOoRo8wzLv2c3/z2sofe+h+0TAN7XrsHlqUtp hbjTvAGG/kLdZBUI6eufDe1xrm8BIS8JN+UO6Pp4n9tplrUGlIVlywDcG6Kp/DoNYkso 0iq3Ka/xRlOmbnrHVKiOPgev9xXzisT1/F0CEd9HyqGUVyE0CoYzGx8jMlDzGCit6uuf An0elB2H8GGx6ywDd1bR0o8o2YEpR5b+gmsjUQyk9G0uuh8wmiAavVcsiJdQbcTkGMwt EW4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684950671; x=1687542671; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KXu0ixlx8Bs2sZSoysi/IhJBHkMW10MSkaolKltVuIc=; b=l4LqAplfqcwj6hUbYZmC6Z+sQhCvQ3F3Mmpl/eJGGmhNkP0wJh1w8OB273m92YlbFy V3X+3tCZNdwxTQsphNKbP7JcxKcpkLt1X4Lu1k3g3lViUoaJsFdLwncmUe2XKMpwl5pW whx0Far2UWAh+mDaCxII1G9BiAKjtigiilXTjyEuG4mjHAo21VrtVddkXH8+LlISw+sp rBs3ch7+ACyyV/dmzgBTS+MI55pak6Fo6Rkz16iGwLaLXXld+NYfpAfT0X8mD3u4EetJ idVdw0B5MsAUTm8g1FI3YvNHPB59CSWkgA2bBs7g5zvg2YjrUj8uJUqeQkqa1F0CMmWu B2lg== X-Gm-Message-State: AC+VfDzTnbshlSXvEvYlWc+6abFIT5uSFU5gGwR1kPFYKdj43xmA+S3x trxxj3ob981PqRjdwhVyKyo= X-Received: by 2002:a5d:6acd:0:b0:309:334e:ee3f with SMTP id u13-20020a5d6acd000000b00309334eee3fmr417808wrw.44.1684950670986; Wed, 24 May 2023 10:51:10 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id o16-20020a5d62d0000000b002fb60c7995esm15313560wrv.8.2023.05.24.10.51.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 10:51:10 -0700 (PDT) Date: Wed, 24 May 2023 20:51:07 +0300 From: Vladimir Oltean To: arinc9.unal@gmail.com 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 , =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , 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: <20230524175107.hwzygo7p4l4rvawj@skbuf> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230522121532.86610-9-arinc.unal@arinc9.com> <20230522121532.86610-9-arinc.unal@arinc9.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 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? > break; > case 6: /* Port 6, can be used as a CPU port. */ > - if (priv->p6_interface == state->interface) > + if (priv->p6_configured) > break; > > mt753x_pad_setup(ds, state); > > if (mt753x_mac_config(ds, port, mode, state) < 0) > goto unsupported; > - > - priv->p6_interface = state->interface; Similar question for port 6.