Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2346031rwr; Fri, 21 Apr 2023 07:43:28 -0700 (PDT) X-Google-Smtp-Source: AKy350YZ1SP+bV5xHiimfSo5cQCXgJawS8BORv3Moz9tej1KwXkoPkYqD56rosCdEUes059SDCYe X-Received: by 2002:a17:90a:34c:b0:246:fbef:7911 with SMTP id 12-20020a17090a034c00b00246fbef7911mr4438295pjf.1.1682088208063; Fri, 21 Apr 2023 07:43:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682088208; cv=none; d=google.com; s=arc-20160816; b=xd/cRBb63RNC0XzgOfsMlbgKMtcR2aMDtxJ6PhqcVp8Tc1ljB8NfZ+MVA3QVTkXqw1 U2fbZR8JV8IR3MZ5J1nxn93VMy09wVJfs9C0zR4B/o6YoyYoHOyTkNxPe0o2R5oS5707 eBRtHZMBdliSNJBwVXv6U5Kf3+TMPTUXkK2YSJEHc3MPXGJaoRuD6TA13e0uYTamCCCc KlX5eTrN6iNpwPE5W+Z89TGjwct1Z8JrUrjn7fJOEfkIhlvA2mG47FYsB2905+tvrNJ/ xud+3uzKWhM6gYeCy7wS3pdUdHBhXE5qY1eIiNPofcqjCYELlsTS3Xu7ab8ZIWXwCixI MyEg== 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=pJixOmbyU63hr3o8Ny5bPEY6KG/MRULhsuG3NEyY2DA=; b=d4OIV4AzTv7N2bzaF+VYLvWRUEbSxsAyhmlXFnaPa5wwXX6V/Ams1JYndZu1GMQsoU BixEsGm3yfZYrPT+UBo9RnF0X99QCz4jeXLQsgTnelK9viIk8YQ9fpYSoHcC5xgHgNtL 587x8INDYkk+vH7aWN2TlclO5Wb4ibllJ8Gbom3YvnN/FBnd0t0VHfanDZmpxzzQNNhe PAoYkWsNZIvdWBEQBZZbyJtVcP6k4Td7gLXrOqawyFbhBqxuZWnuIMoidU0I6H2fwysA VpIwqQyCNnNeH6I1h/4cdecJ90Novn/PY0gxpRpZFgTEltLC36tPLCKZNniL8B15TmGy rhDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Az8QzgGd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oc17-20020a17090b1c1100b00247bd63c3c5si7978547pjb.37.2023.04.21.07.43.16; Fri, 21 Apr 2023 07:43:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Az8QzgGd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233014AbjDUOjc (ORCPT + 99 others); Fri, 21 Apr 2023 10:39:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232976AbjDUOiq (ORCPT ); Fri, 21 Apr 2023 10:38:46 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46CFC146F1; Fri, 21 Apr 2023 07:37:38 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-506b8c6bbdbso2564776a12.1; Fri, 21 Apr 2023 07:37:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682087856; x=1684679856; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pJixOmbyU63hr3o8Ny5bPEY6KG/MRULhsuG3NEyY2DA=; b=Az8QzgGdCSu60O6ATgA/rltMAPtJHOIM/fNgqvUDwljrF188OKCwkUXZsu9TgceVlb XJkSkwuYk0q0LODKP0Ys/gPMEnMs9C7UjYnIRN2N2nUjxcSEfGJV5UOJaNW14e4cnTYS YYp2rdotxte5IvfGjycuGpQ4F0+Bt1P7PL7yLDSziXrWL+u+6Mhk9Y28soqpLcZy2kyl a7qeOJUJqOqXZDshLZd/zrlM0EyAayg+R+R9eZLdjHd+ki27hhuw/u3u1c3kY2DzOkpQ slACzNFllLRnXORAQTxHP8XqHNQ5mNJVS40wnXF5bfsNVrvW0XRlQPB711YFwXXbW8rJ 1lHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682087856; x=1684679856; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pJixOmbyU63hr3o8Ny5bPEY6KG/MRULhsuG3NEyY2DA=; b=KSFeu6suJF2oYKV+JXYTRU41t6eAa0sra7p2HoYAUQC5VKXF8QRK3T2NI4Mz/Y+sUe hvht1Px5j6fUf9acrsaYYXISVxNwlxsive7oRif/rTf6vFcxArQsZia/BoPwnuT7IYMh ltB66TFN/epHQ4aLgB6zF3lF80wM7+bEWOmD/l7X8psPWuof09LGRxDn4GJ/v1vnLMr+ M1E+B+DtPwmZViYRp552SNMkyKGDd8sZAkId2glRIO45lK++szi9DTLsgqmFY2PjXpaD iKAJ/VfyWJM6rCa/gGPFccuDVJTzfhCgfGj13+n+UqpIOWe3VPe5HN3OeB1HMrYEJG8M PbGQ== X-Gm-Message-State: AAQBX9dpdMjjpuOPDvWvuqQcT4Tp9p+ca8iJHbtoE0PCSUPKKZsNtXyh +1GFguuIiue7t1GAXoqfV0o= X-Received: by 2002:a17:906:250b:b0:94f:a309:67b9 with SMTP id i11-20020a170906250b00b0094fa30967b9mr2483806ejb.6.1682087856476; Fri, 21 Apr 2023 07:37:36 -0700 (PDT) Received: from arinc9-PC.lan ([149.91.1.15]) by smtp.gmail.com with ESMTPSA id q27-20020a170906361b00b0094e1026bc66sm2168244ejb.140.2023.04.21.07.37.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 07:37:36 -0700 (PDT) From: arinc9.unal@gmail.com X-Google-Original-From: arinc.unal@arinc9.com To: Sean Wang , Landen Chao , DENG Qingfang , Daniel Golle , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Russell King Cc: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Richard van Schagen , Richard van Schagen , Frank Wunderlich , 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: [RFC PATCH net-next 19/22] net: dsa: mt7530: set interrupt register only for MT7530 Date: Fri, 21 Apr 2023 17:36:45 +0300 Message-Id: <20230421143648.87889-20-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230421143648.87889-1-arinc.unal@arinc9.com> References: <20230421143648.87889-1-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 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 --- 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 a66a762cb5db..ac1e3c58aaac 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -2034,7 +2034,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.37.2