Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2680979rdb; Mon, 5 Feb 2024 14:20:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IEi+pXgBv2hePxgf2e7DlsP3ow184P0eNDVONxxlCMZwH5iVWQrTx6Se7FMQLS2X0a+La/y X-Received: by 2002:ac8:5156:0:b0:42b:f17f:8dcf with SMTP id h22-20020ac85156000000b0042bf17f8dcfmr640660qtn.51.1707171637807; Mon, 05 Feb 2024 14:20:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707171637; cv=pass; d=google.com; s=arc-20160816; b=0LbMsixgFh2T8mSvND+sDFC7p/unb9lJFIJM/uRJmyaKsvUCjV+1T5xkLx8r8TuWCB TrSUqHpxpyGaMM02fN91/C0eNpZALD4RFgMBBZeQj+gYipdiL4HIb2C7h3rH6mTYd6w5 +RKBN3hfupuPMQvB+KqPKIIZ1C5q/dlMVt/tGp/JopjiEunS16nOq5D9RX53MO4gi1s8 izYq8X7+UVrBeuvm2gAHlHp2ec+C863evlGRysN6br0rOZLjrQ+/wan6S4NxxHfxkBp6 QFIN2j4pZPmVtJT2jHyL/OyBsZDEpg1iXi2z78JHZfiCaAZCcDU51DunxPYoI9jpeJPu f9ww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=0TTd4dX4NBQiNMgCNgpZd3yOXl2wHzwu3FVEk98mz2E=; fh=4VXuKmOMePX5f1XWvA4pTZMKrAG/eijKsOeKk5AO/mM=; b=IVxRSrbS8w1b0kGIutnO6ZWYkbbDVJyIhCEUYOiOoSTIF1wVi2RHqZ09v8lcrxp5oF i3Xio52fgbdKnSi6vOWp2TvjYwbOHgd6X93GGX1hz6+NaakCBVtcOJRLaiD2NIhw9Ior rjSxkwWuVkizSaW6l1fvhJubb4syn6F4VYkYhgVVKREjbjflKo8as+n+VS9mB/ZtE8Ik wpc6zi0M2UxaItlwsk/C0uzmtiRXgojjkm7jIONb+gviR4tmTey777qF1nJX86Hpq1Br pE5oGoqoVfwJjrIK1LwLkGKFl1S0Xau3N+3jVtegdRrOTaCC36QA50YENP6ko7WMo7P9 ESSw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZHkFi07e; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-54008-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54008-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCXvOAdKL+7Y2Z6gz1zbst/RR/Brb059fnEeJs6ExAKsMBffM0+p7z5a4GlJneAZWwL4e2GUan0AQgHc6Imc/aNu3RzfAyJ5Vm7DWiBW0g== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d11-20020ac85d8b000000b0042bee82eeb1si883486qtx.633.2024.02.05.14.20.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 14:20:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54008-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZHkFi07e; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-54008-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54008-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F1CDF1C266A0 for ; Mon, 5 Feb 2024 22:20:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 649D35476B; Mon, 5 Feb 2024 22:08:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZHkFi07e" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 401C94F898; Mon, 5 Feb 2024 22:08:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707170895; cv=none; b=Z+i6UY4/lO6K/eiy4Xe2ZPUuGLiCVLlVozLcsGwtBb8RgDxkz3xZU1hovC4p7VRtORqrCR8aNX4BehyxmC7RU+fCXRwVBpkmWPfZqSrKQ7pP73CFDka40KxNG/VfOv20U0QAex1BUvhDwRr6wEDxGwVC2hxRd2WOILzbqGXxyEk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707170895; c=relaxed/simple; bh=eSAMiQYO18/EtJkI2c545ErONhke45hKS5pG6am6UZo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rGILhE10YaH3htSH8XNEW/+7KELseMLWMy/qYQg8hpQs3rOzyLNNOdTv6M/oX/7hXwIYgVVzzyZL1CmyvSTJgcNo98xZce167PStSy0Wcih+3/PilHyB4FGfef+H8ZPS+9QqYTWyP++7WS3gxGQ3L3ktoiWAjiL163QYtxhJsXc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZHkFi07e; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id BA60AC43394; Mon, 5 Feb 2024 22:08:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707170894; bh=eSAMiQYO18/EtJkI2c545ErONhke45hKS5pG6am6UZo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=ZHkFi07eqePPgcqTrbsaLzFQW3jzw5y0aLssRJQX0UFpK0a+4VpamVOwT2WbMMTgP otmbL2/Q2yzbCwUA9S7V2WSS03r8erJE4lOcmcedTO+FhGXxxPl6XSrJ3yrH1e9ulH qw4HNjKAJYT7CFZVV8kay2OZ0GnqoGP1fsLLtm0fqfp3wBInquB3bbX3mOefxFtFp0 3J5Ni5Jd/mupT3FF+HjdQ1nRZT6yMRld5hoSYHitN5iw7S83NIj+UHkKWPMAINzK+C KADnRazg7WCmx5tDc2C3lN61GdHWtNmoVKqXNdFbxY8fQ+Nc+vKqUgkRh935xTmZRm JnQ0Bw/z0JAsg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5864C4829C; Mon, 5 Feb 2024 22:08:14 +0000 (UTC) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= via B4 Relay Date: Tue, 06 Feb 2024 01:08:08 +0300 Subject: [PATCH net-next v5 7/7] net: dsa: mt7530: do not clear config->supported_interfaces Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240206-for-netnext-mt7530-improvements-2-v5-7-d7d92a185cb1@arinc9.com> References: <20240206-for-netnext-mt7530-improvements-2-v5-0-d7d92a185cb1@arinc9.com> In-Reply-To: <20240206-for-netnext-mt7530-improvements-2-v5-0-d7d92a185cb1@arinc9.com> To: Daniel Golle , 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: mithat.guner@xeront.com, erkin.bozoglu@xeront.com, Bartel Eerdekens , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL?= , "Russell King (Oracle)" X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1707170890; l=1302; i=arinc.unal@arinc9.com; s=arinc9-patatt; h=from:subject:message-id; bh=gvaXZPxx1roTT4+mw5MzgfJe6pP7pdjnL2vUf+qUSy4=; b=2y+1C1w+kG/Rf4v/HYdsGB4n39PCvJsb8Gne5yNMqbYUhOaICYtGyNsOfsOo6l6HlCir4zV5U yiQaMMZrhx5BcESuWP7ftnYrOlNH+JGo6VngDtfH5l0woB3SE10tidx X-Developer-Key: i=arinc.unal@arinc9.com; a=ed25519; pk=VmvgMWwm73yVIrlyJYvGtnXkQJy9CvbaeEqPQO9Z4kA= X-Endpoint-Received: by B4 Relay for arinc.unal@arinc9.com/arinc9-patatt with auth_id=115 X-Original-From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= Reply-To: From: Arınç ÜNAL 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. The "config" pointer points to &dp->phylink_config, and "dp" is allocated by dsa_port_touch() with kzalloc(), so all its fields are filled with zeroes. There's no code that would change the bitmap beforehand. Remove it. Acked-by: Daniel Golle Reviewed-by: Vladimir Oltean Reviewed-by: Russell King (Oracle) Signed-off-by: Arınç ÜNAL --- 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 4ca7ba94788e..aed1ea6815ee 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -2573,8 +2573,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) { /* Ports which are connected to switch PHYs. There is no MII pinout. */ case 0 ... 3: -- 2.40.1