Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp67829rdb; Wed, 7 Feb 2024 21:52:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEp0LPidXbpzXYJP/2UgPRTgJwfqqytdxa9C4UoYogK37cA5Fgzk2teWaqVZ6QpAdI8UJ3L X-Received: by 2002:a05:620a:13f4:b0:783:bd3f:e2bc with SMTP id h20-20020a05620a13f400b00783bd3fe2bcmr7090085qkl.29.1707371533394; Wed, 07 Feb 2024 21:52:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707371533; cv=pass; d=google.com; s=arc-20160816; b=F9tpz4dFsWpekvvtNCzAsFkD0gznf3X+IdCAMec/k0dUQG/kJ2723ukjbeR2R3OrAs rTcIzPnlAwxIMrB4VUFhQT9fPOZDPcFgMTA9rZ0RIBFGJy8fzqem1CfX76lI5Dlk4HWa YeN9rqUqkon7ynMTcIZ3pYUZDtt7DT0uprfoSM2kPJku4JPLMCl8Yy3I3NdToqLYQyHk dHdoFnX/L8L+rcJhQl+aOAKEEWt/8KC3rISA9+DGTEVXB1j6AQuGuQ+AsGfEe2Pvy16h YRukfRcweE4vJUzbe6+flI4xfpj8AHyYbBq3D1ZPc6Iwmm977dvaWOrgBbASptnOD50X W3IA== 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=aAT6j+peXF1gkbFazeEWy+KKBa3S8oFGztCQAserssk=; fh=vhB668Y2CRPIa7Z6PsumoeBmCSgrm0bC3i25TyzF5sA=; b=UCv7qUSL2V59Er66hiWC94kzAIjvgpQ9PEapj/qcZMcW86BPTxYuneFNgY4LcnKjOF 5SvrTqmhhy05rjjyeW76C5uWpduJ2P8SuQWHBCBOlKIn76S7cI7mJM9hHbiexFsvz1Wg E8lrZaHzDly8Ay53oodR3KF3sDNxnEa3NJ0X0UQ6DI87HEY+an4ZWID9g2H3HVgYxnI0 hSuSkWJAED+LSU7YYNiSkjV9UV50r6j0fTxxHH0QtJhNaYSWUqpamKs4VZ87hrdyBuQ2 32t1fbdRkaWLdtzkBFwckYvZqbnkskB/aBXMH71dAuyxF6vcLRHAMRML/1C7t/yBATc4 8XEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dqnH2OzT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-57479-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57479-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCWx8/QXJ5GEcwKaWHujk1tnj04ktmO483LBFRKjLfSPuUDyE34I0cFQNiKQWJ7YHrAa9assgFpBghrnqB/U5nvaBXDkLBu8+zVAsT0Slg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c12-20020a05620a164c00b007859c6997b0si2652568qko.214.2024.02.07.21.52.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 21:52:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57479-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=dqnH2OzT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-57479-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57479-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 2B7661C22828 for ; Thu, 8 Feb 2024 05:52:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8080667E99; Thu, 8 Feb 2024 05:51:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dqnH2OzT" 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 9B7A467C60; Thu, 8 Feb 2024 05:51:33 +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=1707371493; cv=none; b=Xn44Ksitim9urRkkOo3EqlmRT4j6erYxA9ZTpADVeQ6GDlyvg37c3peTenaukRIGopjp86ZAZl2dJ2gPyRVxgyHUyhwc+9ER2IonT/kEME6U5AwxOgia/cH86JHvdFK11z9HxYoyTL7u+Sbo5rUK2yFgas9d5LJy71yfdIUiW+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707371493; c=relaxed/simple; bh=SU+tK2MlpgkdVnVhaHn0UQcoIzpj8l2UDGxN8QSA/B4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kWVEg5+fJLkZ+3PIC65hdIelWqzT5ESquQx5mUD4TFB+DEQoHfnY7XvaNCuy3V11+KYlgRkJf7qN0z7ekiAdoXD3l9Wmd70OEazED0Z9Eku5rOXt1G19CcfJcCVVWbX3oC319BNR1A87WDEEskwTtrggFM9JxoJ0fPs8rhtoQX8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dqnH2OzT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 32F86C43390; Thu, 8 Feb 2024 05:51:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707371493; bh=SU+tK2MlpgkdVnVhaHn0UQcoIzpj8l2UDGxN8QSA/B4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=dqnH2OzT+hCRvXizdoX9qn8XTeMqqfS/LSEAyWVjjPQiy1hfWJxEuesWaJzgj+V/j dJFcDEpzmeJZqCCZJI6PVyHKJYZsIwr4OAgBaAymUmYRC0YNP2ocvSK4yc+devTXVv 43v8JbV+4LQaFq7ol6xRhhWfSuDxqbVDcKYnni2tPk6BHAmTnACeZ5Th8uuan/lMWc N60h2okhFXG8TZ/L+2qNy4pq18U9BaWn/4QfGHQ5WtgIuzKRRIp/y1V5BRwyxZDtUe cubk3E8B5u6ji5abcOloBS87ptjqC22AEou8acce/GRaCNTDXSas5EmBghfWGznT22 JDIzWFzCzx0JA== 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 0F48FC4829E; Thu, 8 Feb 2024 05:51:33 +0000 (UTC) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= via B4 Relay Date: Thu, 08 Feb 2024 08:51:30 +0300 Subject: [PATCH netnext 2/8] net: dsa: mt7530: set interrupt register only for MT7530 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: <20240208-for-netnext-mt7530-improvements-3-v1-2-d7c1cfd502ca@arinc9.com> References: <20240208-for-netnext-mt7530-improvements-3-v1-0-d7c1cfd502ca@arinc9.com> In-Reply-To: <20240208-for-netnext-mt7530-improvements-3-v1-0-d7c1cfd502ca@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?= X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1707371489; l=921; i=arinc.unal@arinc9.com; s=arinc9-patatt; h=from:subject:message-id; bh=JV5lkSoAmKAO6vEQKKvFpHOlOFc0GQ6XMI05UOpapU0=; b=gVJzgC1rkRFswBLSwsGE9zAoA7gaHsrqPDBpHSaPRlfz3WAEM9kFoZLOs1dYjje6uA30WLr92 ckaRwet1UcuAyBDO9o/b453+4N++G5PYpr0BUe+/xfNbcWUH5145IRI 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 Setting this register related to interrupts is only needed for the MT7530 switch. Make an exclusive check to ensure this. Signed-off-by: Arınç ÜNAL Acked-by: Daniel Golle Tested-by: Daniel Golle --- drivers/net/dsa/mt7530.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index 94d4b2c87799..5cfd303b773f 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -2055,7 +2055,7 @@ mt7530_setup_irq(struct mt7530_priv *priv) } /* This register must be set for MT7530 to properly fire interrupts */ - if (priv->id != ID_MT7531) + if (priv->id == ID_MT7530 || priv->id == ID_MT7621) mt7530_set(priv, MT7530_TOP_SIG_CTRL, TOP_SIG_CTRL_NORMAL); ret = request_threaded_irq(priv->irq, NULL, mt7530_irq_thread_fn, -- 2.40.1