Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2455888rwd; Fri, 26 May 2023 06:54:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7vJAbSbaCdLB7+V79iB2Jg7bcvEg0uCRK/djxjYLBeJzBurubzF5+qnetLHOD+w7NT6xmt X-Received: by 2002:a05:6a20:1601:b0:10e:e813:46ed with SMTP id l1-20020a056a20160100b0010ee81346edmr2496233pzj.43.1685109276570; Fri, 26 May 2023 06:54:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685109276; cv=none; d=google.com; s=arc-20160816; b=pnjjQn+fGcMbQLhWXg3XkMq+l3eBVhm/jEBrLOJDSiuX5wHjFVQISnUsbofzTgTZwF dp4hSXhRYe+iMhR2ZyawQTDqvAlwa7POjt7O4rsEaMX4ZQrfcQUwE+IHWdxtnft/B50G r4iotRh7K/THzC+sohR6o7eA+FQ3tmZlRQocDWim4bFa2VtfM9kBFhMickVUTGUU/cEP IfO0oeiNFv2ANomwxPR9XLVqLyWWNQbaYFRTM12xjxA6nUU3V+rIHLPxWpSv4SSPBqTa 9MjQn93W+PnS/byRPU7VebcKQvoYU/wYN9fRsrpSwA1+vFdS5CFWmrzv9wwojWdalF4i 5bJQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=l4MwRu+xy8iMy6y78CZiipQFPUpQ1fQNAnvOg9FBsTE=; b=o6O8K5PZ07/ReISxozBB7Z6naNmy9Zxn2+rg/ljzswARjcNhMWekN7roVA13Dm0yyM rAqF1KdrNI7phWXT57SxQ6lctorfeqzRW92/tlvU7/vUFTABTCA4t0lo1NVSVKilUw2e cfFvo/LX4jQJx6HVGaFPU8a4UtIaHb8kP6J7HxdCeWoozpfDMkDwPNBl1AVHqEudmqak KiHgeajzQLJQmx+WzWwmjiYtv/WeeZFHFQN5Zrg1ruAJTaKop3FWM+B4uktUUAnWcHne vkRtUc6+BQrJCzp1wWMgT0eayKSZkBW/J1KCFMjXKn8TF1iTFT/QnWMjySPwQsqKYC2u 1COg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=UEnJDMMA; 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 f8-20020aa79688000000b006463201bb55si3731794pfk.325.2023.05.26.06.54.24; Fri, 26 May 2023 06:54:36 -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=UEnJDMMA; 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 S243630AbjEZNUY (ORCPT + 99 others); Fri, 26 May 2023 09:20:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243605AbjEZNUX (ORCPT ); Fri, 26 May 2023 09:20:23 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3EC9187; Fri, 26 May 2023 06:20:18 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-51144dddd4cso1027400a12.1; Fri, 26 May 2023 06:20:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685107217; x=1687699217; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=l4MwRu+xy8iMy6y78CZiipQFPUpQ1fQNAnvOg9FBsTE=; b=UEnJDMMAincGgk9uz3J9XzyuqVh8gU13UloLZk3DxqUfW1KsU/FwQHcKxVyVRQ/Hbt tSARZdD1vS8OdcvVZCJSFqkEKRjnQXvhQzQtQ/28Cfg59fycBD5hiXzDaW60T6B9Ft2B LG9uXrZbY7hX2He4PPhG6ZZbp1Q4QSTANq07Z4rtaTD1sF4OpjzbV0jbxrVdbWapt0GS mvnogCeNVXwDbi131yWn83mEBKMyT9cPOr/y5cpGvOkasiN0bR7XClreHg571Ca//Zan uebECgk+XYT7kMPf62Qt8115z5Aadfn8rTe+7/f+ul1D9GyhAWw0ju+lNcXQ7ao9ca4s Wz8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685107217; x=1687699217; h=in-reply-to:content-transfer-encoding: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=l4MwRu+xy8iMy6y78CZiipQFPUpQ1fQNAnvOg9FBsTE=; b=jt4ZH/qNyNJoeCO1Z9MgM+jUBXlEsQPam+/0+Q9RROLSxIX6E7IgCs+t80emQYzryJ x0vALgb+GkFsL3T3FIA5qI3LBVtceBq1xSHvWDLRguVD0mb1j+yWYOoUObCUIACPywhL lNG53BInX223hgILOW46SWVpRp6+Y6zcEoJ9dAQmgW4NNqIjCUZ5HrSTdryivtVJozKa BsU3AL2EnYk3bQLCgpWENetFoQl6SEkBf/8voHiBQ4RVLMu16LC3sWJzmV4sjTnmdm1E Ol1Y5xOPWpa2hfNW/bOUX2avcIonD1tnYfqiJl/wlDg6UfJ6gMFKgrwRv1bILtc3xjvv y4NA== X-Gm-Message-State: AC+VfDyfEnsUi6MHXPX/Yd5Yj4bkWcE06us/wN5HOwZm3/zRTTjIYKoS PrEek3tlxiGyMhrritPOm4Y= X-Received: by 2002:a17:907:6d1b:b0:96a:f688:db6e with SMTP id sa27-20020a1709076d1b00b0096af688db6emr2058486ejc.74.1685107216953; Fri, 26 May 2023 06:20:16 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id lk15-20020a170906cb0f00b0096f5781205fsm2106665ejb.165.2023.05.26.06.20.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 06:20:16 -0700 (PDT) Date: Fri, 26 May 2023 16:20:13 +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 17/30] net: dsa: mt7530: fix port capabilities for MT7988 Message-ID: <20230526132013.rnc7awhqsunnepxi@skbuf> References: <20230522121532.86610-1-arinc.unal@arinc9.com> <20230522121532.86610-18-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230522121532.86610-18-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:19PM +0300, arinc9.unal@gmail.com wrote: > From: Arınç ÜNAL > > On the switch on the MT7988 SoC, there are only 4 PHYs. That's port 0 to 3. > Set the internal phy cases to '0 ... 3'. > > There's no need to clear the config->supported_interfaces bitmap before > reporting the supported interfaces as all bits in the bitmap will already > be initialized to zero when the phylink_config structure is allocated. > There's no code that would change the bitmap beforehand. Remove it. > > Fixes: 110c18bfed41 ("net: dsa: mt7530: introduce driver for MT7988 built-in switch") > Signed-off-by: Arınç ÜNAL > Acked-by: Daniel Golle > --- Either there is a user visible bug and in that case the patch needs to go to the 'net' tree, or you need to drop the 'Fixes' tag. Also, 2 separate logical changes => 2 patches please. Thanks. > drivers/net/dsa/mt7530.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c > index 514e82299537..f017cc028183 100644 > --- a/drivers/net/dsa/mt7530.c > +++ b/drivers/net/dsa/mt7530.c > @@ -2533,10 +2533,8 @@ static void mt7531_mac_port_get_caps(struct dsa_switch *ds, int port, > static void mt7988_mac_port_get_caps(struct dsa_switch *ds, int port, > struct phylink_config *config) > { > - phy_interface_zero(config->supported_interfaces); > - > switch (port) { > - case 0 ... 4: /* Internal phy */ > + case 0 ... 3: /* Internal phy */ > __set_bit(PHY_INTERFACE_MODE_INTERNAL, > config->supported_interfaces); > break; > -- > 2.39.2 >