Message ID | 20221116205308.2996556-6-msp@baylibre.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp57347wrr; Wed, 16 Nov 2022 12:56:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf6wFQwgookFM2Vk4DzkrJayhliA/FM/m7jwvesD63Nl05mstKXJppinkPnCLLWUKT30gplm X-Received: by 2002:a63:fd07:0:b0:46f:c9e8:5752 with SMTP id d7-20020a63fd07000000b0046fc9e85752mr22338312pgh.157.1668632218371; Wed, 16 Nov 2022 12:56:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668632218; cv=none; d=google.com; s=arc-20160816; b=KOTpbmDVD/UPqHfHxzDRF4lYPiqGiMMykSanT2ucsOmtRb3MOUJTuTmdwQjM3I70mo siAKBnoLepHfKOIh7zOkfv0yFit8BYHWsVyU/iUdaOAdZJUlDKeipB+lvOI43yUCYCav vOlqLTeABIaBPy2ZCP7YznmJHDYWq2LfEEcbdkNszycb5Uyk3Knmw+A8qkklxJ1BYFmj TSnqWPxsV3zWTselIXnQI2Vj0yTrB7/vwA1Ax5aZUtFHiSWk4yFuyFLKa6ymdSeDxM2s D8twQnfKQXqbpGbth8xpfgLpIznR0tQokj67UPL0ciKLUKYucbvE6HUsKyX61b4J1Tn3 JhJg== 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=BQXrupsqnXF1GGI8XYdR6EHbywjzNEqXAWKw2mVWyKY=; b=GVk1qhV2eqXTezAzaeImHuXkdcmOzYd/mozUfpgnUaxVEzFa/+VMgQ/UreMH/asvmq abPrjLYChFfAvRTwEPLBSpoUJSgKL06QZeSyvUxugg688qmbz7QliNz2Pgdg1U5N113U f2t0F6wDV5DLkXYb/YNYUQaRXHnP/MG+vZE3mWBSUD3s57RjjTZxbsyPFXfPfQoIAVVe xWKs9yyoFh9rM8G0GGaMvGuMVF/77UEnGiJAwGt3pz8aUATc8/J5hMD8bah2MUilU35o sm4UhShU7zW+ceo25htydLs6UZlVxjuo5YGfvZZZcXpGLQVIemnADS9To/CIdKgYwSg/ iPTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=q6Ppqc7S; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a170903214400b0016c44b7c8c5si14137798ple.11.2022.11.16.12.56.45; Wed, 16 Nov 2022 12:56:58 -0800 (PST) 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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=q6Ppqc7S; 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 S238946AbiKPUy3 (ORCPT <rfc822;just.gull.subs@gmail.com> + 99 others); Wed, 16 Nov 2022 15:54:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234611AbiKPUxt (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 16 Nov 2022 15:53:49 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2634C100A for <linux-kernel@vger.kernel.org>; Wed, 16 Nov 2022 12:53:29 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id l11so28489119edb.4 for <linux-kernel@vger.kernel.org>; Wed, 16 Nov 2022 12:53:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; 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=BQXrupsqnXF1GGI8XYdR6EHbywjzNEqXAWKw2mVWyKY=; b=q6Ppqc7SSiseRXuaUY5yOxkTlGSSXo+V1jekORDzSlvpc7FVSJiS4J/298QhA6gdjz vllNwMANVlC7mUEyI6DwHdG1EIQcbLUHu8+sCxeBC88/elFeyA3RCS5myrLVCzYGEHZH Tm51noOoIWVfOpl6H2VJVvINlzEJym4Ylb6cGFyjNQTWH0LG/UZ1ekr0gvJSEBocVGh9 HVA54xdOtt3L38zbcxMcKE5GmXopQXvkuNnNbmo5qezOs9EL8tfBMo0rAZZTlPDMp8ki aajesdEQKHBEdXLWnFidRTIhS4+QWm/ROAS/g9dp9zJSKjRuJqBCOOXEdTW+08lGpVy4 gA7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=BQXrupsqnXF1GGI8XYdR6EHbywjzNEqXAWKw2mVWyKY=; b=oxyT+F2UAHyaVRt8gJvQZ/dNRlvejxFcALVbkH2k1db5bz1+mZOrGGVwmOG0yUFkhe lX8aX7D5Q2JXYPVDKSHP6Eu9ysC5u8lZS8nxp73+i3r/L9UQ/HyPBtIMGFs32Av9cTHl Xkd6n50YgGZwSdvQA0DXEmw4uXY2kSCyFOGCUDZ0XAIKDJbQWetfiLVzi6jDDrGCcN+b wMwUxogcE6N2fOW70hucbGBLdV5/+edHwIz0Y/r0uJE3jxkSSLYAizG+eyehwqjy3Cc/ xGZnFJzrDOM0eIjQqbn42ubkVr5rZVcP36FItG5P66mqPvIuyc+okMWzwffCvYMjsrdo nbow== X-Gm-Message-State: ANoB5pnQWK6hSgkvNqCYz9gAnQCpBb6ToPUtmjDjOG4hWTKQs3TyTJIb ScDLuyQMnIzoUQgnOtj9cLOmjQ== X-Received: by 2002:a05:6402:2906:b0:461:c7bd:7da3 with SMTP id ee6-20020a056402290600b00461c7bd7da3mr21102534edb.218.1668632008075; Wed, 16 Nov 2022 12:53:28 -0800 (PST) Received: from blmsp.fritz.box ([2001:4090:a244:804b:353b:565:addf:3aa7]) by smtp.gmail.com with ESMTPSA id kv17-20020a17090778d100b007aece68483csm6782828ejc.193.2022.11.16.12.53.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 12:53:27 -0800 (PST) From: Markus Schneider-Pargmann <msp@baylibre.com> To: Chandrasekar Ramakrishnan <rcsekar@samsung.com>, Marc Kleine-Budde <mkl@pengutronix.de>, Wolfgang Grandegger <wg@grandegger.com> Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Schneider-Pargmann <msp@baylibre.com> Subject: [PATCH 05/15] can: m_can: Disable unused interrupts Date: Wed, 16 Nov 2022 21:52:58 +0100 Message-Id: <20221116205308.2996556-6-msp@baylibre.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116205308.2996556-1-msp@baylibre.com> References: <20221116205308.2996556-1-msp@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749687697048906557?= X-GMAIL-MSGID: =?utf-8?q?1749687697048906557?= |
Series |
can: m_can: Optimizations for tcan and peripheral chips
|
|
Commit Message
Markus Schneider-Pargmann
Nov. 16, 2022, 8:52 p.m. UTC
There are a number of interrupts that are not used by the driver at the
moment. Disable all of these.
Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
---
drivers/net/can/m_can/m_can.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c index 4a6972c8bacd..5c00c6162058 100644 --- a/drivers/net/can/m_can/m_can.c +++ b/drivers/net/can/m_can/m_can.c @@ -1245,6 +1245,11 @@ static void m_can_chip_config(struct net_device *dev) u32 cccr, test; u32 interrupts = IR_ALL_INT; + /* Disable unused interrupts */ + interrupts &= ~(IR_ARA | IR_ELO | IR_DRX | IR_TEFF | IR_TFE | IR_TCF | + IR_HPM | IR_RF1F | IR_RF1W | IR_RF1N | IR_RF0F | + IR_RF0W); + m_can_config_endisable(cdev, true); /* RX Buffer/FIFO Element Size 64 bytes data field */