From patchwork Fri Mar 1 10:42:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTCB2aWEgQjQgUmVsYXk=?= X-Patchwork-Id: 208762 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp990340dyb; Fri, 1 Mar 2024 02:44:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVJevy6JRexpAUJQ9acv3GJ1jvHFIj+AASyh5j2BhTMxjyFAMVVza78vyKizMkpvwnF0C4wmB7GvHQN9HFCCFcSTt5lHQ== X-Google-Smtp-Source: AGHT+IGHi7piwQfElvghriQnM9LrY1DJ5K30U4nyQoNxgiN8cQPYUFBWjA1kX3gSNjA+QfWHJym3 X-Received: by 2002:a9d:62cd:0:b0:6e4:cfc0:f91b with SMTP id z13-20020a9d62cd000000b006e4cfc0f91bmr61702otk.9.1709289879051; Fri, 01 Mar 2024 02:44:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709289879; cv=pass; d=google.com; s=arc-20160816; b=Izw4PR/2hUOeqNi7d23r/o+hV8OzZ2MVXfNCnaClCnWcSyQzldco2UyWscIk3jcjmS 4OPY4AruW7VBLnIHeB3dzGxVtzPNX4MSQOEDK9lE2BPKxewPrFBKoF5hkXw8y/LfA4aF owT4C5vWTiu0q+SbLt0Fyz51bQasOPiujO5qqFRwtQ3AFbvTxQz5kTsa6p9oDFOWAKcP nDJkrKbPj9XmroWYLZnVu/iB2nFHusanse4zYVmOFLK+04wrXDa9xNfqc/aeGlcc33Ga 9DDb7DBZdMonG28hZfaXE7Kxlf5MSUGaJ3ZkTxAmhiYiWDenp+mKX4yQiHvDza0svbpr 3vkA== 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=xNlE86XmqkSplYYMvvd74gD/RbF2aUqtHPBgVCVc3H8=; b=AF5npbWE9cusa6waMwd6Veglgos69Z87vmypieIV3W23pODZg/+YKEbfKdYXn81hgT HWPVs6+2BdQGFCvY9Slr6iX2/IC9vhJYOY9RfNDVWk/TABgx5+n4SgKikQOcih10cvep NFlMnqLhKfk1WAhOlnRnEAdAI7X449lrEltURt8gBiQEdzxEGBGr3EuXQJjdL1IEWF7Z WAd+J9hbRGzOjMdYpJwOGr4eO/eM5keif/7nzAWHBXvGIC7AFw8gIT9eOcKyoHw/g7Ju 3cNQmeumyx9zIg/0GUW3UrLX2nJ8xGOJIPjnF0NCytZRgX/Ur/4hmLqBXyJe1zokwHNv rmeQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WpEW0BK0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-88271-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88271-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u11-20020a655c0b000000b005cf8b79f90csi3223972pgr.501.2024.03.01.02.44.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 02:44:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88271-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WpEW0BK0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-88271-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88271-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D445B285610 for ; Fri, 1 Mar 2024 10:44:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 077D06EB66; Fri, 1 Mar 2024 10:43:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WpEW0BK0" 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 289806A8AD; Fri, 1 Mar 2024 10:42:59 +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=1709289779; cv=none; b=UIKSnwajho+vTGKy81UgFN51TAX0Dx9h3YPuE5R70l/i/bCu0aaj0DxakLs7PYl/CiURJLV/E48yaQYSPUys8jd25WVDEprVQuFgpgaCRdhI9SCbGIjIOJi5XZwdcXtay5MlEhgVq065jBOOx5opJGjx/k0t0qIi4z4kQuxaF94= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709289779; c=relaxed/simple; bh=SU+tK2MlpgkdVnVhaHn0UQcoIzpj8l2UDGxN8QSA/B4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BvDFwfZkerm0PfgdizfhrjZWRq590xiPE2g/SZyiVoiv1WxTcsfvjKuVQCpChLvnoxfQMFitNJP2GGEjtpW9191h8x+vMMUK5tO2lyx8EV6RnNTu5danx9oymZ+pPGjkG0OAf0IGd2DHI2wBUsKnCwqgKixoHxkLDvAB7xN+Pp8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WpEW0BK0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id CF0FEC43390; Fri, 1 Mar 2024 10:42:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709289778; bh=SU+tK2MlpgkdVnVhaHn0UQcoIzpj8l2UDGxN8QSA/B4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=WpEW0BK0JGXMO1idR1AAt80adqw95t3pmM5o39e5bqpFB9gcAE5BGHO01sFPl+2Nr OQfyup1xMyM/nN/2xw6r+ddrQqMaMstJvGMv5vHaNyHF/w3gIBx5N5jTAlC/1s7f/O C1VfhxYlqq9xQH0rtOUuQ5EGherYq9515+u8EJ+Q9GPxtMIruS+AYIBX1AkXZcu6ea cl1rAXSMsPDim5WHkFK4cLK/W28CDb6ASNoHmFfERNq4eebR1huk1IOX2LAwSDtZPG dJiMgDRj2Tz/irDnawrM4vcDeXibEMAn5RrMvgwvRBRxFLl8ynxdT3idbmH2qeXWBw 8ralK9Wn2QNbw== 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 B7037C54E55; Fri, 1 Mar 2024 10:42:58 +0000 (UTC) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= via B4 Relay Date: Fri, 01 Mar 2024 12:42:58 +0200 Subject: [PATCH net-next v3 2/9] 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 Message-Id: <20240301-for-netnext-mt7530-improvements-3-v3-2-449f4f166454@arinc9.com> References: <20240301-for-netnext-mt7530-improvements-3-v3-0-449f4f166454@arinc9.com> In-Reply-To: <20240301-for-netnext-mt7530-improvements-3-v3-0-449f4f166454@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?b?QXLEsW7DpyDDnE5BTA==?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1709289776; l=921; i=arinc.unal@arinc9.com; s=arinc9-Xeront; h=from:subject:message-id; bh=JV5lkSoAmKAO6vEQKKvFpHOlOFc0GQ6XMI05UOpapU0=; b=sDN29cEjzp83tM7un6A21yIeFo9LYgnjVC4Xk7q+Zp0J0suaNg8FyIx/eXQTAZUBFsTqh/YNe O2TMg3uZy9UDrLLFlOEDdkBqwyN4G4HFBOIdLa+sYPrKWohmmjWu2VF X-Developer-Key: i=arinc.unal@arinc9.com; a=ed25519; pk=z49tLn29CyiL4uwBTrqH9HO1Wu3sZIuRp4DaLZvtP9M= X-Endpoint-Received: by B4 Relay for arinc.unal@arinc9.com/arinc9-Xeront with auth_id=137 X-Original-From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= Reply-To: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792320343960918372 X-GMAIL-MSGID: 1792320343960918372 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,