Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2453374rwd; Fri, 26 May 2023 06:52:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7iklXXg3txm7hBw3OjolX2Fx/BbFgz/mrseYfSc2jD9dlbs/vQuJ74UHoJKKD9kG0wdBKm X-Received: by 2002:a05:6a20:1590:b0:ef:205f:8184 with SMTP id h16-20020a056a20159000b000ef205f8184mr3052555pzj.13.1685109137026; Fri, 26 May 2023 06:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685109137; cv=none; d=google.com; s=arc-20160816; b=Rg3kkOXUQdeF/3wsoYthIdh7Bpg973LMU0Q1rp+EX2AYqEMuMGaMIHddPqI89lh2lr 3jDZ6d+Kf3kXINnakDbsJFRGIILXN4pityCfT6LnTTqu8LFx+biyjIIGZq+4Q7Aya73r q0cBGWqRKHnf30wj5YI4JuQvudL4zyQ0gmHVyIY9baE987Qs9DLr+eZ7gmBvH/22IHq4 7nZvP4k5xgkmNzycnw29yyoPmC6XlxA8V1YBJ1en8hHX80oYW/uui1cID2TGQBfXwfk1 aOm5ymePSK4VIX8NEBT/4Pyhvclev4lDxcdp04Ij7E8kp/BNSInw0mpJ4mDEu85G9BoS kwRw== 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:dkim-signature; bh=REExVQcWcE2QjJuxENKUcGpJCKWSMyccL07DCITDofY=; b=XOGU7yLhNQFXOwtJ6VHqDZiVVVrzD/P9zTMWNTmM3mr74a1L4DrY439llfjhxvx5xi SiTrEhIUNZPKv4vc7FFqUxXWBn8EjigMil6hhu3QU1opij9Keg3ju3zdXLAVgxddQ7a3 txAq25jtlWsVIfnxW+sY4hhV3hTNq1g4CpAUYuB/D1usDHt3thcJEHo58H8Z+GgPpf44 nJwlEN0cZ9RUwNcxwaqFLIGEdri6Pz4403XDL5d5ouvpj7+yd5PFFHL/yEPnnKp6Flcm 1PXZB3mRtfQ8xb7vdb+3KuaKWk8/+7ph+Qm80AdpaFasgUJNJKTLbhmb6yMIzPCvgJxH /v2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=qAyvFDmh; 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 q134-20020a632a8c000000b005369f4111b1si3873667pgq.658.2023.05.26.06.51.59; Fri, 26 May 2023 06:52:17 -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=qAyvFDmh; 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 S231447AbjEZNZQ (ORCPT + 99 others); Fri, 26 May 2023 09:25:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229882AbjEZNZO (ORCPT ); Fri, 26 May 2023 09:25:14 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C63012C; Fri, 26 May 2023 06:25:13 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-51480d3e161so12413a12.3; Fri, 26 May 2023 06:25:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685107512; x=1687699512; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=REExVQcWcE2QjJuxENKUcGpJCKWSMyccL07DCITDofY=; b=qAyvFDmhsukPnn4WvAmi10pKd4n2FqmPW1UufHxkYNGGWR1dx/1llwEa2WCcXAF303 iZSKlaO95+NI673tZOCG378LltKAUkLJ43xWBX7PpV6ldciulJYU3G9VtFCQuIY3DzyQ DIYkf63t3HV5ykQ5j3MzC+JC891jSE78LK9v+3J5+RUpfMUPue4tp0FVpG3njoUjYxGw pWj12qVyTRMGMzVjmi0c9p6E0VbZFqWuW+aaLw8IfmRFgKyEt7+D8H9TJvhinsq6O0og rYOf7VV/1stJPN98PqhwrStnYYw0Nha+46hA6GksIdoqlqVNlrQ8/4IDICYuTZV+dNjl OiUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685107512; x=1687699512; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=REExVQcWcE2QjJuxENKUcGpJCKWSMyccL07DCITDofY=; b=JzPrWh7Zw3hOkqOYXw3bSug2NreEA8ekjIOvWUD7byAr4t2er2xCEHHkiP94Obzuew CwRdhuO6C97JejrLC4gasZTz+YfIveN+aHkCZoH26cd4Ip7BVKG0okQeeS4gxUDxs/fG mPgC1AJg6oY5sZy6ZZNQGwc09r0iCDUMN2ux3AjiIefZRMG/EjuL5CuYAFXaoc3SLmUI gPEHeybiTDlivYRaPQckKVe2+pLoyb3RYDGBXO/wITJVqOL0n3snEpgzFtsJuGfrfASm u181Rh2idlVwzGRtkz6M4hg/ZNtaPH6RbLFz6d94ZNsz1yrEsIabABiX67QNMH59o+1b X0kg== X-Gm-Message-State: AC+VfDyhtV6mrDpDcOZUby7XX42vfqHfidKjADO0TxAe4zuKx4AwtmAO Nz6kUXeg1hxUpHjy+Rse73E= X-Received: by 2002:a17:907:9345:b0:973:9857:b98a with SMTP id bv5-20020a170907934500b009739857b98amr2330770ejc.55.1685107511683; Fri, 26 May 2023 06:25:11 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id z17-20020a170906715100b0094e597f0e4dsm2123613ejj.121.2023.05.26.06.25.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 06:25:11 -0700 (PDT) Date: Fri, 26 May 2023 16:25:08 +0300 From: Vladimir Oltean To: arinc9.unal@gmail.com Cc: Sean Wang , Landen Chao , DENG Qingfang , Daniel Golle , Andrew Lunn , Florian Fainelli , "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 , Bartel Eerdekens , erkin.bozoglu@xeront.com, mithat.guner@xeront.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net-next 19/30] net: dsa: mt7530: set interrupt register only for MT7530 Message-ID: <20230526132508.fxgljrpozuuzelal@skbuf> References: <20230522121532.86610-1-arinc.unal@arinc9.com> <20230522121532.86610-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: <20230522121532.86610-20-arinc.unal@arinc9.com> 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 On Mon, May 22, 2023 at 03:15:21PM +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 > --- Why does it matter? What prompted you to make this change? I guess it's not needed for MT7988? Or the register is not present? Or?... > 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 99f5da8b27be..0c261ef87bee 100644 > --- a/drivers/net/dsa/mt7530.c > +++ b/drivers/net/dsa/mt7530.c > @@ -2029,7 +2029,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.39.2 >