Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1151675rdb; Sat, 18 Nov 2023 05:16:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IGzPsoZ7CEIgZjSmBfJbM5X/TIx650d7+BxBwcC1gzpVtuBvtC2gkUXxEkpwJKxkaoFkCPi X-Received: by 2002:a17:902:efd3:b0:1ce:6589:d1b5 with SMTP id ja19-20020a170902efd300b001ce6589d1b5mr2001435plb.42.1700313386820; Sat, 18 Nov 2023 05:16:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700313386; cv=none; d=google.com; s=arc-20160816; b=d+yMfMXJiMNq7FBy1Jxo0WK18K2eyuKmGvs1ocXAfsNwWOsRAW5L7bxt/1upYL+Blg PPDOYFS0zGuN4XzQwANaI3O+ast52gEWxfl5mU01w2A4WIVwWXKexYXNRxIc7QmYNSk2 KY55r7Bkjv0A2pZopHK/w45DP/YLBFEYsVT3lz5pErhmlr9moeo90WO8NoV56KAL0uY1 M63+A8VyPlKspy1ZrnYvs7iKFCvtX7zT8sacGKDbKKI6bHG++0csGckyTlfNyCIHr9R8 ISR7ekqCswi285cspS8sxZquo84KewtRVM1jhBx4TeS/LRXZrCITPb7rANA9iWpG5B04 eC6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QHMSEER/SBEH4IqK5yT4ZrjQxH8VpFrbj9NbOVlG2+g=; fh=pxvM+Wf6tCsucgcJlpaT+KtPH3mT2/1sv0nByOcyBzY=; b=Kml8S6r4YOperjk45pds13XCydYdPOxGi6L9lLlR3oyhUqY4YVmgHeNyJVoHKRtVPW ew52Ubefm1Khf7djQfpOpYA9yyo6CMy449ORKaRG3llt53W8s1+hvXbLOZl2Qpd2HTDu jsKeOY965L9h6YHfl+pPYe3rSh57gw8HCrPe2wlWre9rrmk0/Xd0mENZaoT3G4rGzxtS SM8jLmyrrtNrJ3gEcKFqtX+Ttufka7SJ06wujr/s0HwYTqVMH20zHqmLE5oMM2fvYrDe 7Wi2vactFT8N0tR/awGZb84KlBI8RzHTGU4BlJPzsoWWOdQPUNiZUrJb5RPsmSkbB9IS C60g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=WaKbZMD9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id u1-20020a170902e5c100b001cc5306e870si4156368plf.542.2023.11.18.05.16.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 05:16:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=WaKbZMD9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4AF5D80792C5; Sat, 18 Nov 2023 05:15:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230094AbjKRNPI (ORCPT + 99 others); Sat, 18 Nov 2023 08:15:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbjKRNPE (ORCPT ); Sat, 18 Nov 2023 08:15:04 -0500 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7051ED76; Sat, 18 Nov 2023 05:14:59 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id D183920004; Sat, 18 Nov 2023 13:14:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arinc9.com; s=gm1; t=1700313298; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QHMSEER/SBEH4IqK5yT4ZrjQxH8VpFrbj9NbOVlG2+g=; b=WaKbZMD90W3n3aSXSb3a0ZAU/mvWWrOzYmu/OX+FjY2U++BzndNh1VYokHs8s9NcqXZBQO HjEAkUBwmEAut1Au+7mXn76E7pg4Fvyc9hZYocLl8hf7ondvoS0S/SKOtlHiUzcdSmNQkX wLJNarbKsxYgD8Pod5XGAnzQ6QJ8YK3mRXIe/gI/LxOzODeOHgLAJ0FJ3/4EsT/dY+5pnw 0ank40KApmUlWos2qsif/6/gW7SE8P7aW/Co7YVTgZY5baXpE1j3a5NAH8O+yqto4/L3iY jdYgq6gdqTWVF+RkZF7NRQtgANtLpKvumYvDotECsgxItT2b9J+RS+EAKAVOWQ== From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= To: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Russell King Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Frank Wunderlich , Bartel Eerdekens , mithat.guner@xeront.com, erkin.bozoglu@xeront.com Subject: [PATCH net-next 15/15] net: dsa: mt7530: do not clear config->supported_interfaces Date: Sat, 18 Nov 2023 16:13:17 +0300 Message-Id: <20231118131317.295591-5-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231118123205.266819-1-arinc.unal@arinc9.com> References: <20231118123205.266819-1-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: 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,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 18 Nov 2023 05:15:18 -0800 (PST) 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. Signed-off-by: Arınç ÜNAL Acked-by: Daniel Golle --- drivers/net/dsa/mt7530.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index ca42005ff3a9..20ae147b823e 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -2558,8 +2558,6 @@ 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) { /* Internal PHY */ case 0 ... 3: -- 2.40.1