Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2799005rdd; Sat, 13 Jan 2024 02:28:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+P8dRygcJja8zQgU/SSYEBpI7PYq2F1A6hFWxjx3dS14hhUZ4cC1h8u25J1Mko2Knwimx X-Received: by 2002:a05:622a:56:b0:429:9203:6ad7 with SMTP id y22-20020a05622a005600b0042992036ad7mr3549960qtw.86.1705141712934; Sat, 13 Jan 2024 02:28:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705141712; cv=none; d=google.com; s=arc-20160816; b=DXOx8+NVhTPz6yUbd4oY3rcm5x4eN+yFd1DRLeiqAeRtiMO8IdvIalXwFrHxsltKbO RZ0rF31HsweFcAFRzjTijhhoCzD1EzGG986zCc6KnM9qMJAZKjFmqzTRnC6aGzeUwoyD LnKViNsTlBcH1FfoK+3JIkJ7zk0b0NBtlo0RKa5uvFWbC4NKsaQhT66DpGaObCGFEXsu +4lwAcHvRuCYYa59RA1b+zCjOhTzp6SKEsoAfLNQW7mJxvYZwmg8CJ7CtDz78hnb1oRS 6E2TqcdH85VIy5tPnJnLNrDMMYs4pqtZbFlbRHQx3pPPjZN690TmC+1KtSmetiY1hM8K fvig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=LSKWVbeKaEgi3v3uISobEzTpPXktyePmA/wEfRZmpHA=; fh=oEE+jV5O4HAXE+nw8ulhLME5zcU0kdlsqoguEBeScfM=; b=K5GSDlmQQ1zoS3EwI5LVxduQJ9QSZRtQJjzRv7JPb73WSgh9A9T5JDHXisIG8lvP+o edrHAXgx2PAFy560SksUrzssFIg3a40Fp2Z2Fp0E6ywSjxxxWIRjYVrSyMTHJCZQ2XR/ p8tzREb3Zp1w0rWW9gTGQoveXc0RAmAJAqJG3mR5OQDryjH8r0ahIwpH9KS8+9KmiZDi tQWaBJgHYHN7/F3v4qe1W523OvpPxsF2Og6/giclHqYiWdd4nIFVrGz+rERdZuMEtSTC gnCHSovom0ovpWhloZyVl/w1c+nJYqUKkEnfELV2Wk78faxXzXlV5SPNTq1W5lvEHDBL mBmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=CRr8yp6e; spf=pass (google.com: domain of linux-kernel+bounces-25259-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25259-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a5-20020ac85b85000000b00429d19479a0si2364878qta.665.2024.01.13.02.28.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 02:28:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25259-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=@arinc9.com header.s=gm1 header.b=CRr8yp6e; spf=pass (google.com: domain of linux-kernel+bounces-25259-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25259-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com 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 ADD1A1C21A5D for ; Sat, 13 Jan 2024 10:28:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B77118E0A; Sat, 13 Jan 2024 10:26:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b="CRr8yp6e" Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 DEFD81C8A4; Sat, 13 Jan 2024 10:26:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arinc9.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arinc9.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 32F126000C; Sat, 13 Jan 2024 10:26:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arinc9.com; s=gm1; t=1705141580; 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=LSKWVbeKaEgi3v3uISobEzTpPXktyePmA/wEfRZmpHA=; b=CRr8yp6eLY7+tpctHtfEmkzozpPnFgS0GiaeeorivUlms4KlUduGV4Xhc1knp8MbCtiGi1 EdoZ7NLQEwqOPg9CnVL51dA/yNiQaWdjdz1spX9P2/jnOTleHFOER6gUlQC7g6fR5wpqUb mICbcAFd64mqDxplvUmPY4j6MOhfIruv1DqqRH78p0YMZ9VuW5L9ag04vdN+SGYpRUTGoV lgQ4WeJbqOni4XsR9Oa43YxwiBWIXIyIh1ZlrjPV9FPIH8RXcjMb+mOzQK11T15U3TZE5p 7+A9u/XwjqXpS5ik/BEetXExzS2AH1Tuhb36Q3fKjOBSLvwY2meY50TSkL8dMw== 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 Cc: mithat.guner@xeront.com, erkin.bozoglu@xeront.com, Luiz Angelo Daros de Luca , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [RFC PATCH net-next 8/8] net: dsa: mt7530: do not clear config->supported_interfaces Date: Sat, 13 Jan 2024 13:25:29 +0300 Message-Id: <20240113102529.80371-9-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240113102529.80371-1-arinc.unal@arinc9.com> References: <20240113102529.80371-1-arinc.unal@arinc9.com> 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 X-GND-Sasl: arinc.unal@arinc9.com 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 e7e7e89d8eca..361a9cda48eb 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