Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3174999rdb; Tue, 26 Dec 2023 20:46:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYavhc+DcsUEyl59TEtibu1FNSa4iRH7Hnbf642HijKkCKrdPon/7usDyJX48CcZGGu8sq X-Received: by 2002:a17:906:20d3:b0:a23:510c:c9c1 with SMTP id c19-20020a17090620d300b00a23510cc9c1mr2010712ejc.218.1703652385016; Tue, 26 Dec 2023 20:46:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703652385; cv=none; d=google.com; s=arc-20160816; b=Uco7VeEu/aiT45y/OccOkIbcNEu67pIBjlQ5WRbH51Wacar4T9rTLBr0DexVTdPgyV 0HaF+gDHDlFIqc7YtMawzbDgq9VaDxc9S+1SGAu9nboI3CAQLejjUp/DGm/kzjylrLO+ CZpImR4F/TPUdDgvuGJy7l/fXFoku7IjelvR+N1jiDtu/RwYKkPilRYsyoCLn57xByP/ LrAaGiQPVetvjl3uo5XVhjLai9F5PTNg3hsM2ysyPFln5IhAPazuy27wWkGJBnHVde4K FZthj5q/zhe3rJPdtq5slqsat/P81MwKuO0icetptMJnAuIelTgvCMCukzy3Gv07YK61 PHGw== 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=Yq8FPR2LuMZyALJszWpCeHHckLAPDv/7+vYZcgFAtMY=; fh=/nU+kOzOTvf+q6B7NtAi9MijA2ylDaAq3D9X6AyS0Do=; b=Rlby2VCXaQSYEwpR+8bwnosmMqF9XPcHJqwbz3vjCBZip9lW5l3u6WXCpnXN8D3c71 JP7ASi3882g3ELscZlQPrUtQ3twj0JtJ4ZH2PYeJGJ/8yZXgWbTGkFk+vwyOSjWKABWH keM0U3yo9UNUFduYemUYZQS4Mzd2OYuB/4fOlspQEoixrCo/6MNwxMbNCvkFIpMGxY5H Ig0BVywIQwRbQfn+OZ1XkN0z7rNNBwzPFj6Wke4GKC/7oLiOBugNzMvLFhnzuCQoEC9y +mdakYhmcbf5aNhZwYMYo/5J328+rTpWO/yUwEGqizhd8qzxO0JKvrbxeFK3WdunJzsB Qadw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=O+NbHwlQ; spf=pass (google.com: domain of linux-kernel+bounces-11827-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11827-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arinc9.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id zr14-20020a170907710e00b00a26d45720besi3441630ejb.659.2023.12.26.20.46.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 20:46:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11827-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@arinc9.com header.s=gm1 header.b=O+NbHwlQ; spf=pass (google.com: domain of linux-kernel+bounces-11827-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11827-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C33731F216AF for ; Wed, 27 Dec 2023 04:46:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1044D538B; Wed, 27 Dec 2023 04:44:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arinc9.com header.i=@arinc9.com header.b="O+NbHwlQ" X-Original-To: linux-kernel@vger.kernel.org Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 7FC29D26B; Wed, 27 Dec 2023 04:44:34 +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 62E1D1C0006; Wed, 27 Dec 2023 04:44:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arinc9.com; s=gm1; t=1703652272; 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=Yq8FPR2LuMZyALJszWpCeHHckLAPDv/7+vYZcgFAtMY=; b=O+NbHwlQGumS7TsEOQr9BI9W/qAdYrT25uhKxHnbDp/6iBiFPtfRnlV/0F6b1nbfwhTWoT u2vYueKcYpUpw5Pr39+fRIlu4PyumjW/2rRanqAFAqojNwUfDFT1L1ll4wneNf83ZtLcsn 736eO/i5HT/mjys/KN8ZHI4LtHXm99iy6woUe/odmouV4neBPhbcp+UEB6e8p8n/ZquCqQ nO9++Mx8uADhqjY7UIKNJUfzVCxpWxckEZw1E9FRpE4bcmMOWVRpjHyO0LIjPcK6REUjof EJmTqMesQ05kZdaNsk05SoOeiQER89KrSOAhZhjeqoQLs8Md98z6maOdzCnx6g== 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: Frank Wunderlich , Bartel Eerdekens , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH net-next v2 6/7] net: dsa: mt7530: do not set priv->p5_interface on mt7530_setup_port5() Date: Wed, 27 Dec 2023 07:43:46 +0300 Message-Id: <20231227044347.107291-7-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231227044347.107291-1-arinc.unal@arinc9.com> References: <20231227044347.107291-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 priv->p5_interface and priv->p6_interface are for use on the MT7531 switch. They prevent the CPU ports of MT7531 to be configured again. They are useless for MT7530. Therefore, remove setting priv->p5_interface for MT7530. 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 bf6c59ecc489..07c5f1c6d036 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -978,8 +978,6 @@ static void mt7530_setup_port5(struct dsa_switch *ds, phy_interface_t interface) dev_dbg(ds->dev, "Setup P5, HWTRAP=0x%x, intf_sel=%s, phy-mode=%s\n", val, p5_intf_modes(priv->p5_intf_sel), phy_modes(interface)); - priv->p5_interface = interface; - unlock_exit: mutex_unlock(&priv->reg_mutex); } -- 2.40.1