Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2649431rwr; Fri, 21 Apr 2023 11:48:46 -0700 (PDT) X-Google-Smtp-Source: AKy350aItrQbOq3FJlMHp8e9CMBui9sm6KzPIZ15w++4NQOuft78Ely0ZSJO5urc1Xcuwa77uIiB X-Received: by 2002:a05:6a00:230a:b0:63d:2d6a:47be with SMTP id h10-20020a056a00230a00b0063d2d6a47bemr6874996pfh.2.1682102926030; Fri, 21 Apr 2023 11:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682102926; cv=none; d=google.com; s=arc-20160816; b=WkWKyqrLXs1fi7gMRW+doRUdGui1UT2/wi9k7BmeKyXeS9LQPx3DvpzvkralSB+Oy2 KaaoqVdbfrnwqlxlnZxgdctBOCStAyS3+2aFQSHhcftoPcZ/hCfcKuE47Ro12zPdVhil cmVIui+Q9/o9Zl6SwU4Ld0d4L5LIaXQsMhosmFo+w1sEmB+w/VciW1vCpp/M4LIGr2us loaZcNdHMdahwSQX///VLbdj7kTraJcCCFQR1ZiBV9BscBtHuPC+NPX/K/H0xiaJmFn2 EEJFpaDL4Q/uVYzHDKUk74Kx5bICIKPAG770Nis4GVqqDML/2PLnOHAs3HvvP70eaGO/ 1hHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5xhs85aQkTRgCJRjbjY7O4iRGRT2kG1Og2r2mzLD7Ic=; b=nEAfJW+fsC3/ORvtif+yS3QoLF5SEFn+RcGCKYW8DfuJPjtduCG+cUV9VUM55wniKP 7oH7IeutIO1n7IxF+ARBlwGtDUK3q88Xo3uTcb5I026JK1a6dhJ4CwW9c/bL19irRu8X aotKb1ouhK/rA8UmtvIy1vocfNspPjNtDCfxRVrHpgEHPCURSlEMLllN28fpQdduf10S XhWugAKk8/9SpgqQfNaKEZsVNySPt9a8TJkUskD1bXoG7Yk1dTwKVHzlJ+iLlgTiZN/L fvUdSXv8X4aMkSpQaCTfrCcatsDJR8RPx5s2In8Rabzw/yTYXJmZRj1zmYlZD5LPpe+W aJLg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o5-20020a63e345000000b0050bf617d84fsi2612897pgj.249.2023.04.21.11.48.34; Fri, 21 Apr 2023 11:48:46 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233247AbjDUSdo (ORCPT + 99 others); Fri, 21 Apr 2023 14:33:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233227AbjDUSdn (ORCPT ); Fri, 21 Apr 2023 14:33:43 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A8C81FF7; Fri, 21 Apr 2023 11:33:33 -0700 (PDT) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1ppvZB-0002bf-2a; Fri, 21 Apr 2023 20:33:06 +0200 Date: Fri, 21 Apr 2023 19:32:58 +0100 From: Daniel Golle To: arinc9.unal@gmail.com Cc: Sean Wang , Landen Chao , DENG Qingfang , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Russell King , =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , 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: Re: [RFC PATCH net-next 19/22] net: dsa: mt7530: set interrupt register only for MT7530 Message-ID: References: <20230421143648.87889-1-arinc.unal@arinc9.com> <20230421143648.87889-20-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230421143648.87889-20-arinc.unal@arinc9.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 On Fri, Apr 21, 2023 at 05:36:45PM +0300, arinc9.unal@gmail.com wrote: > 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 (on MT7988 which is the relevant hardware regarding this change, interrupts still work fine) > --- > 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 >