Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1160872rwb; Wed, 16 Nov 2022 13:04:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf6kzmTv5IT8CGL566Z/V2a/LgoxygBY8ihkddtsOmvoxwTpY3ThdU/G9XBq9M7gIJMM5F6C X-Received: by 2002:a05:6402:748:b0:461:9955:b54a with SMTP id p8-20020a056402074800b004619955b54amr20451561edy.159.1668632647351; Wed, 16 Nov 2022 13:04:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668632647; cv=none; d=google.com; s=arc-20160816; b=x1ZNF/bh4gw0/er2HI9zSd2oFGHVuBdap1t5zKqUr/Bdjkm+xmm/IhX40IqUtVPw8k m0hhTZ5y+cHF2fQqg7OtPPHSTgQMJCL93IJCxqI3CrsbgSHEf3uk60+aCgada0ToCLVQ oiO3P2K2BwSZqO/3haicA2rcRmgw+fCE23IoyTUGPpxBHr3IR02RVYCIDVLNaKeF6uCI K6LtWd8lqX9mnIpf+T+NfrJHQEJF1B2ot+dZ9wmwdabTcdhoAmJadlBkVVDaaRUEx+4I 5cJI3vEq48bBtlETRvI1Jekb768gdgJmOu3RBSdlT7G10QAscQCUNcrx7zbanM799DC5 UolA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v14-20020a056402348e00b00461e63fe88fsi17825478edc.596.2022.11.16.13.03.46; Wed, 16 Nov 2022 13:04:07 -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 + 90 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 ); 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 ; Wed, 16 Nov 2022 12:53:29 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id l11so28489119edb.4 for ; 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 To: Chandrasekar Ramakrishnan , Marc Kleine-Budde , Wolfgang Grandegger Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Schneider-Pargmann 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 */ -- 2.38.1