Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp972164rwb; Wed, 14 Dec 2022 05:12:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf4+D2BZX2IPjTrperx5X3b6+J7EFV25X7bB/FQuYLzH0vaUGTJE4VtBhsVBcRDASh3OL9Y6 X-Received: by 2002:a17:903:260f:b0:189:ba94:c643 with SMTP id jd15-20020a170903260f00b00189ba94c643mr25635705plb.1.1671023572669; Wed, 14 Dec 2022 05:12:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671023572; cv=none; d=google.com; s=arc-20160816; b=y6kf4QlKsY0S/FYe7pGtWTyWgzls2BhwrbP77yeeJTJd4GaJX4XSkeJ/HB1iEcxAM5 y8h0tQLS+3XEhdwv93aowWpQQfdULBwLd4LQsSYaDdXnR21RORmRc28A8JzcAqHzHlhj Xe++nhfAt+bS0pL3D7LNo7JxUIKSuSkZbCmdYR8zoctCfj6+t4p56pnqUXYIZz24Kn/m TNP1xwbuxEEf9vl97Bv75WPYdwuOuWx4XZGPn4ytgLt+D4fjvIZ/1N6R64t9dj8Q8BkH KKbLMl33RxG5StHXB0+furs/3w0d3eBHG4lIT2v/DucjhNn8wnWQYPwqzAol6agdMoTz 1UjQ== 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; bh=I00R+mIVMEq1xRbEaHe9Lr5ofnb/O5HdzRlF8l7nfHQ=; b=TmV5+xsf45XaCYO8NambJJd0McuBYzj8xOCeyWFl3dmc4zi7bAmvIleYkrwPJndeFU PV0VmBwuOjOtnMuLr8exPQC6MwU/2JI/VeTii5Eek9kcWcWi7AcbTc7QsLaooCQQcm/P j8ft2iDvhIRy8eD78dKH43Fp79L9UWw7aDkCIQ26euiWXpSQbOBY0JwIZ5oHeaGWbax9 /QbCJHyemB/jnE3KI+YfaDumPtTI9i1g6naO4Yuqh5ofGFfnLd6RIuGre8TVZY1tLZgC GkHKapQv10+UiO6cuXYgxGk7+XU9cBQqNxIJe1yha9RDiiPHu8CFCT5ltmJ4Rwqcm12j 5qww== ARC-Authentication-Results: i=1; mx.google.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 l7-20020a170903244700b0018958a858c4si3056400pls.238.2022.12.14.05.12.42; Wed, 14 Dec 2022 05:12:52 -0800 (PST) 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; 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 S238129AbiLNNDL (ORCPT + 70 others); Wed, 14 Dec 2022 08:03:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238398AbiLNNCn (ORCPT ); Wed, 14 Dec 2022 08:02:43 -0500 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F215FCE5; Wed, 14 Dec 2022 05:02:22 -0800 (PST) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.94.2) (envelope-from ) id 1p5ROp-0007VE-7T; Wed, 14 Dec 2022 14:02:15 +0100 Date: Wed, 14 Dec 2022 13:02:11 +0000 From: Daniel Golle To: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Jakub Kicinski , Russell King , Sean Wang , Landen Chao , DENG Qingfang , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Paolo Abeni , Matthias Brugger Subject: Re: [PATCH net v2] net: dsa: mt7530: remove reduntant assignment Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 Frank Wunderlich has reported a typo in the commit title, and he is right: reduntant => redundant Please either fix this while merging or wait until I'll post v3 tomorrow. On Wed, Dec 14, 2022 at 01:51:06AM +0000, Daniel Golle wrote: > Russell King correctly pointed out that the MAC_2500FD capability is > already added for port 5 (if not in RGMII mode) and port 6 (which only > supports SGMII) by mt7531_mac_port_get_caps. Remove the reduntant > setting of this capability flag which was added by a previous commit. > > Fixes: e19de30d2080 ("net: dsa: mt7530: add support for in-band link status") > Reported-by: Russell King (Oracle) > Reviewed-by: Russell King (Oracle) > Signed-off-by: Daniel Golle > --- > drivers/net/dsa/mt7530.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c > index e74c6b406172..908fa89444c9 100644 > --- a/drivers/net/dsa/mt7530.c > +++ b/drivers/net/dsa/mt7530.c > @@ -2919,9 +2919,6 @@ static void mt753x_phylink_get_caps(struct dsa_switch *ds, int port, > config->mac_capabilities = MAC_ASYM_PAUSE | MAC_SYM_PAUSE | > MAC_10 | MAC_100 | MAC_1000FD; > > - if ((priv->id == ID_MT7531) && mt753x_is_mac_port(port)) > - config->mac_capabilities |= MAC_2500FD; > - > /* This driver does not make use of the speed, duplex, pause or the > * advertisement in its mac_config, so it is safe to mark this driver > * as non-legacy. > > base-commit: 7e68dd7d07a28faa2e6574dd6b9dbd90cdeaae91 > -- > 2.39.0 > >