Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6658612rwr; Tue, 25 Apr 2023 01:33:48 -0700 (PDT) X-Google-Smtp-Source: AKy350aA5R4tqzzCrSmDEDFVPBbCRrW8LlbdiVBSeGBkV0UdcNL5WM6St3CwIjOLxvpOYBPgZq+H X-Received: by 2002:a05:6a00:b8a:b0:63d:23a7:ca62 with SMTP id g10-20020a056a000b8a00b0063d23a7ca62mr21943692pfj.19.1682411628180; Tue, 25 Apr 2023 01:33:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682411628; cv=none; d=google.com; s=arc-20160816; b=XwYzhBhxK76GK0ZLytG6a3U/bL6UK+7UXolPkMy+CovQ2l643jmBg2VPTQFqoiLBEc QKscISMrnTx8OyZvqnIt9DqlEsZ4sz4vGy3qttZXqwZzIiR3uL4lbILAjSsvZkphisUc d7harxgIvMUQ26X0Bnb8UrbPR+J3EAg7khenXIrQzaA0sus0PaH7fNi9Pm6d8PirL9SY iDoheKGiKY8ylJo3HEFct5cwFMQ41h5MBEy4u1tuIsakt9hFBXC1FXY8VBIxl6lEbdFU Bwm185CuhWI1Y6HdWSY2wPJ/gXhy7OYVv6hH+jccrqq+qQlQFzEMZeo+/L5O9Wvm+iHR 5QWA== 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=/D1JJY2efd4MnhHjjsGtT2ihX1VwbDlUSIIDF4L4q84=; b=NomrtpyGNY3TVe0bSO3Wu/DL/IaGQNv4dE5PmN6hwphBQXDKEaEQewLn0J/D0+PUvv 4WXf2vlbAjXlY4Ab5yB38UEZVAko4lmJ/uXCdSl1PrX2Z0a1704ldJ6erJa1vIl5rboh R+JZks0QQXK+8SwmxKaUz0RlH2jz/8hyL6ffDlU0j1QCsARLKLMgT62lLWSGlvM6OQUy T7yeDesdl3zs6G+9wv96DJFIpqXxlkJ0UtqEJkLUiUUM+ec4a3oO8nvOOrTK/bjFTd/g USXx/fJg+KertXRy1ew9hQh5jZ/Zwh4VLtlzGpZ5mnwRjWx8GelUCMkUldHBW7+d3dcK 4HXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=MdGnAaVB; 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 s62-20020a632c41000000b0051b618ec7d0si14027165pgs.617.2023.04.25.01.33.34; Tue, 25 Apr 2023 01:33:48 -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=MdGnAaVB; 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 S233673AbjDYIdO (ORCPT + 99 others); Tue, 25 Apr 2023 04:33:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233539AbjDYIby (ORCPT ); Tue, 25 Apr 2023 04:31:54 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0EC813F8F; Tue, 25 Apr 2023 01:30:48 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-94a342f7c4cso993044366b.0; Tue, 25 Apr 2023 01:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682411442; x=1685003442; 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=/D1JJY2efd4MnhHjjsGtT2ihX1VwbDlUSIIDF4L4q84=; b=MdGnAaVBAbp6NdQd8eUgROd9+A35ntfLrjaupUxW4um9PlATT9SpQ0suUF7e65UZsy FmMSaZ+k6228RiadOeUTPmhfleMuTqOat/hleVMHN02HFqCIt3uahp0+ud3oP02/T7It 2seYADYIbk6ri5luYeAJB8k/qV+yA452jzabz4MMx76vpNfHa0INEs19a3TCOWrj57Gg hoP5Gwk8sOpq0H4TT6cNJV62yuQ/pa2b7Al2RDlV5ziDniAuF8CY/CpW+2IC3mXC6cr+ 8K7PubBfFZNmLl/lbyMIfG2i0RcH5kc3hE6V3xWq8GgWQCRq6sY+SVVeb12xuu2Oba+0 /r9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682411442; x=1685003442; 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=/D1JJY2efd4MnhHjjsGtT2ihX1VwbDlUSIIDF4L4q84=; b=cOcGSQxgSWx/Nl+NhIPoObv7tOqJSJinrmjJi8YJcgTH11uTx/YLJtSsmDqC9I6ien h6RoxmmG7yMEL1qk0W7WZOvXzMxWbqcoAreYu5jyjLWPwHR4/wftILJaAkpRIx3QW5sY EA1DHEngciXWrAm7HIrt1p0Nx+IQEyfwM9dsYvu3I2uFovCPWJFnMOlntsVsbZbXk6M7 oVGte9xSIsSotz8fVWUhU4bFQMUVO3PiuA19/925gFqaOFM/vveJ/OSlSDgnSIpsjPUx UuVRF+nqP/UqxLBdYTukj5D7+OsAVl+TE828SBbFgsZMgLo3lJoPfV4n/WRNnwDKrLea pDlA== X-Gm-Message-State: AAQBX9fgKgyY6gvX4T6Saga4JEVABaKhRtT8VUBKDhMroDWxlpvZgCyf y3mAel5wv9m467goyob4jpo= X-Received: by 2002:a17:906:8a44:b0:94f:553:6fd6 with SMTP id gx4-20020a1709068a4400b0094f05536fd6mr12551081ejc.24.1682411442106; Tue, 25 Apr 2023 01:30:42 -0700 (PDT) Received: from arinc9-PC.lan ([149.91.1.15]) by smtp.gmail.com with ESMTPSA id mc2-20020a170906eb4200b0094ca077c985sm6439028ejb.213.2023.04.25.01.30.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Apr 2023 01:30:41 -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 , Bartel Eerdekens , 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 20/24] net: dsa: mt7530: set interrupt register only for MT7530 Date: Tue, 25 Apr 2023 11:29:29 +0300 Message-Id: <20230425082933.84654-21-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230425082933.84654-1-arinc.unal@arinc9.com> References: <20230425082933.84654-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 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 bdd3f63fe1ef..651c5803706b 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