Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5835272rwj; Wed, 21 Dec 2022 07:36:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXsEPsnT2iCoXyWDgwFSEuzhW1gebBbnOJwERnZQn57cLBrOlCNwrTZ0Nlb61Q5IWLoFytZ4 X-Received: by 2002:a05:6402:360f:b0:470:49a2:ad7d with SMTP id el15-20020a056402360f00b0047049a2ad7dmr2056584edb.25.1671637006669; Wed, 21 Dec 2022 07:36:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671637006; cv=none; d=google.com; s=arc-20160816; b=KrkgAMw71USKRfKOVSSQqCR4P4/qWW3yHXM9QaOowtd5AnJ4CG83KbrdWf/rZXSldf LHWKsTBJBZHykL/7E7Kef0WH+A7fbhDzvc2yf5nyShOdqgmNJW15h4jxyK5/B15/Iyuw Dr3mFmr3/VzAFMGFAc2DidXlVp6as7qpZe21k2iNc2JonaT3R3J1olBwi0YfYZ7uArZ9 hNN+LzwhQxSTPSjQHibIjRrbph4NykgB0CSL4nxSQpLYl9N5XSg38BWfvKzj1wFYBkNK q0sOH9dZINBoGeYXmpT0HDVwKMumln/GjMPhw/vKCf0uiCoLYBc5sp4X27D49WZsLvsN T8sA== 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=XEakEc2TumUj9I0JFZxAmMNH6yQlNW3F3xhK6BoUg1I=; b=V2CyG0pDK0Nx4gkc5wnPpRS4SGDNoly/Ru2Ju/gzEIGGWRGySugKnl+/Y/MCWsmVNj B9chNxbI3YLr3Gj2FbhiraV0iEQTqtGI3YE1/EOO4tGCn2K84MgqOOdfZqfpokrEW7P2 VZGte/SF6TcJD/ZsTa+f6VNemNVL5AyNOWItA2/pN8N0KgDmZQOUFM9hRXeNHDiIsWwv YvjiBuwgp/npne3Y3eqGiC+gxR5n5QkNDF/ctWq/LEf/tQoplQfoCLyWYdRDntj6TsV3 1wI9odPVO7hb+U8+Dcrx7DjX9clStC+Kp1qq5wzkVyva0mn1R8EgrXZehpySlSySyx3O lZAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=Svm6uGAg; 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 h8-20020a056402094800b00461d726439asi2370272edz.538.2022.12.21.07.36.30; Wed, 21 Dec 2022 07:36:46 -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=Svm6uGAg; 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 S234734AbiLUP0P (ORCPT + 68 others); Wed, 21 Dec 2022 10:26:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234635AbiLUPZt (ORCPT ); Wed, 21 Dec 2022 10:25:49 -0500 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C665955B2 for ; Wed, 21 Dec 2022 07:25:46 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id d14so22402525edj.11 for ; Wed, 21 Dec 2022 07:25:46 -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=XEakEc2TumUj9I0JFZxAmMNH6yQlNW3F3xhK6BoUg1I=; b=Svm6uGAgnyBswNXuAPBjKuldylKpri2MOc825zRx/pJ/eJTZj57gSwKEb/ss79pB5U e/zJuDh0q2Vzhlx+gtpvX5N7eyndyiprjLqxkQC04/c0ogjoQJpO7/wKOa9aPwBP902l UIbSSEJ0rfvtkY9ZbiyIkfDlhCM/WH5k1ihWXfA7IKV/AcpLgyPcSWwSdMrGItqJwd9W zFBW8qlu+6IpWm8KXv6rzYOKimpr46si9/0zZUegISClGo9TyensAKIdblDapwZe3TEF 2pRPWpV2EYeuEacnUkGVJLUBsrphRoIw2YxJvFH6LzktA/jmlVFmOc7ZDlp8q7kC994q 3TAQ== 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=XEakEc2TumUj9I0JFZxAmMNH6yQlNW3F3xhK6BoUg1I=; b=2UzZsZuwCEs+Y7nR9qzwfllU2Plet8TvM+LvP8kGYVaNZb0ayMBiIpfyHeHlZfv13i aJSmJLl4TSCpHyEHHbJuInQQ9U1mv2NlhNasNvc+4gaJumtvCI9xNiwI6EKrtD9CvEa0 Qc3bal5ET7O04kGDhTIFNgZL1+5ZoF/SR92M04ccibkxsiyXMNRBw8qhzuCwDWuU5Q1R 6dZyW3ZZMkRwuQCumjqktWFhjYQ/80Dkq7XpOJ/hBj1ptLBK9FSL2+h0LIIsXoWOPPzp Y1eRR/zUJqaqHlQFDylNOmoYdIC20rQzIkSrXRnNS4hxh87R4YunVY2P5gR/lc0wWcwB YzoA== X-Gm-Message-State: AFqh2krFff8JYu8UKz9+YmQQIyaow+RZwMnlbbIP4cx1Gq2yYspeuHcP BlQ8j1fADW5AFgUHWE7AagBlUA== X-Received: by 2002:a05:6402:240d:b0:46d:731f:d726 with SMTP id t13-20020a056402240d00b0046d731fd726mr2088485eda.22.1671636345373; Wed, 21 Dec 2022 07:25:45 -0800 (PST) Received: from blmsp.fritz.box ([2001:4091:a245:805c:8713:84e4:2a9e:cbe8]) by smtp.gmail.com with ESMTPSA id n19-20020aa7c793000000b0045cf4f72b04sm7105428eds.94.2022.12.21.07.25.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Dec 2022 07:25:45 -0800 (PST) From: Markus Schneider-Pargmann To: Marc Kleine-Budde , Chandrasekar Ramakrishnan , Wolfgang Grandegger Cc: Vincent MAILHOL , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Schneider-Pargmann Subject: [PATCH 05/18] can: m_can: Remove double interrupt enable Date: Wed, 21 Dec 2022 16:25:24 +0100 Message-Id: <20221221152537.751564-6-msp@baylibre.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221221152537.751564-1-msp@baylibre.com> References: <20221221152537.751564-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=unavailable 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 Interrupts are enabled a few lines further down as well. Remove this second call to enable all interrupts. Signed-off-by: Markus Schneider-Pargmann --- drivers/net/can/m_can/m_can.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c index 4b387403a7c7..a76465016e17 100644 --- a/drivers/net/can/m_can/m_can.c +++ b/drivers/net/can/m_can/m_can.c @@ -1347,7 +1347,6 @@ static void m_can_chip_config(struct net_device *dev) m_can_write(cdev, M_CAN_TEST, test); /* Enable interrupts */ - m_can_write(cdev, M_CAN_IR, IR_ALL_INT); if (!(cdev->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING)) if (cdev->version == 30) m_can_write(cdev, M_CAN_IE, IR_ALL_INT & -- 2.38.1