Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7290188rwb; Tue, 6 Dec 2022 04:00:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Rn432OLzKnI05XaWz5EIi6duIS4aHChMYErXDcFsYEC+6ddrScriLlttdCxItUKeU7iQV X-Received: by 2002:a17:903:555:b0:189:959a:84d8 with SMTP id jo21-20020a170903055500b00189959a84d8mr37103268plb.38.1670328021634; Tue, 06 Dec 2022 04:00:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670328021; cv=none; d=google.com; s=arc-20160816; b=O7KYWQ5nmwSGyDzZ6+hUM8XNRkHduR2GL2a5S3EYbFnpGWwFQwl7rvFd8k8iCrqZko kMv9SoIUL3S5UWBPG65d/OEqSiyFERrFmUjSD4qoxAMXCQ/d3mNenZSjzYg8/UkemGm1 hKezQ2pDZCeV7th8n19TufG3dTT3Sl8LligGVYGhXYUOAOcXgNPxfVx8Cn78VZOSHOKu 2aRiujdZ5BZwSbr+HhfJnG2xHBgMohhml6k00JECnoqNN02Gs0gk+sZPEqYoLFI2ruws 8IfxaYEYw9GVzdjUshBkrUx34UpdTC92YgUlcQvny9t4R64YfOeU8ks7GEkTXo7Y3pA4 cERQ== 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=CcIt1IaTYEax5vtcXo6kulHEbyp3PY4P8eBt1nKytvc=; b=JXtxUNv3XDmQgERGxWNPH1TzDNnM3f2j9L5nb6v9BHftcPSKbuEh3FfV4Q4aMVTxUx 26AO8gQ6Iacj2gRrORRihbWpvk1/WQUi/a6TY8UcbSE6zm6iSZByiAnWXlmuP2Ny8bSp tS+I3tbRT1XX3IJEa79Z/U4dt11Q9v781VKA7O2VsNlmw8P8Ghc6ZLY2323XC8Uvb2cz lmocryAmQqxN3JyBwIiDtCRY1zCeziuOSUbqQc5j1B1VqancirovoSfS3n2+9pzAYloF LR4DvHXzQzvqbSYsGSjmQivzU8M/roXQIOJfMrWRFWT5mdOiezYYaV7+PRJ7MyOinAKj J5tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=ctdptYH+; 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 u12-20020a056a00158c00b0057747054c0asi1335607pfk.154.2022.12.06.04.00.10; Tue, 06 Dec 2022 04:00:21 -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=ctdptYH+; 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 S234569AbiLFL6O (ORCPT + 80 others); Tue, 6 Dec 2022 06:58:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235171AbiLFL5s (ORCPT ); Tue, 6 Dec 2022 06:57:48 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CD526583 for ; Tue, 6 Dec 2022 03:57:44 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id qk9so5617940ejc.3 for ; Tue, 06 Dec 2022 03:57:44 -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=CcIt1IaTYEax5vtcXo6kulHEbyp3PY4P8eBt1nKytvc=; b=ctdptYH+HKK0dnEqg++UoD1XAweQtXUqNccU7/L76eMDHIErzeUt3U6s/1fqRzrUhl ecctv7dyhW5cwd9l1VdgZddpAJIitY/qqIw+l30VlveiezNqLurDmsyREuhuEu+jQBVl XANE5/Vkt/2QVxTzGgmiKZCKR3PbB6n8V+M4wiF3f+S0WlB2QaQEBrDmPe7JWmpZk3SU ruI8wuQsgk/pAjIHK5tfwAmyM95rn3BMpwDFpkmtL6nUy0kVGJFmpE8gqoKXbfHaXbgR KCmjLJxMyOc0lsBsd22XxQB6SA1j3UFFbS5oK1hU3140dnES75SaYSFu/XFgq+zSGpe6 ldqg== 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=CcIt1IaTYEax5vtcXo6kulHEbyp3PY4P8eBt1nKytvc=; b=L9BrtEwu0+9JQ1/Yy//Iywt4bIUVP/afr2gH7AVjLD1cq9AebtJfqnYNggvsXyXnnB 23HXVL2gArNfpwNMlrn3TGkFB1Pj1F+EQZMyHCiDlol1A7ZuO4ht9GNV3kmN5X2J2KNN xGhAma+mhuXr8zTdd0hoYOiTbR4hXtiJ6MEUw5gyZtF3WJjnbO30KaxEFlwUxJgnGBtP VBgbO/5CZzQ6nI3dQxF7t3IpIf+Llqt/oYipQta+4DOw6yVnlG0JxKOwrLwgAwB6+FnK sJifs3B5Wa1DN8n9obP5nkofauwyW2j0zggC0yfU3ISV5JFknYvFvzgF1/X0Fz8Y5bJj x//g== X-Gm-Message-State: ANoB5pnZ82DA9h2kBpFt8Wiuqm6Bre2s5zReYEW1MxuMWdb0mAsSz1A3 7hePrJAfO9HDMgmI8OG910GUAA== X-Received: by 2002:a17:907:8b06:b0:7c0:8e3a:9a54 with SMTP id sz6-20020a1709078b0600b007c08e3a9a54mr25879568ejc.619.1670327862671; Tue, 06 Dec 2022 03:57:42 -0800 (PST) Received: from blmsp.fritz.box ([2001:4091:a245:805c:8713:84e4:2a9e:cbe8]) by smtp.gmail.com with ESMTPSA id ky20-20020a170907779400b007c0ac4e6b6esm6472076ejc.143.2022.12.06.03.57.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 03:57:42 -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 v2 08/11] can: tcan4x5x: Remove invalid write in clear_interrupts Date: Tue, 6 Dec 2022 12:57:25 +0100 Message-Id: <20221206115728.1056014-9-msp@baylibre.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221206115728.1056014-1-msp@baylibre.com> References: <20221206115728.1056014-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 Register 0x824 TCAN4X5X_MCAN_INT_REG is a read-only register. Any writes to this register do not have any effect. Remove this write. The m_can driver aldready clears the interrupts in m_can_isr() by writing to M_CAN_IR which is translated to register 0x1050 which is a writable version of this register. Fixes: 5443c226ba91 ("can: tcan4x5x: Add tcan4x5x driver to the kernel") Signed-off-by: Markus Schneider-Pargmann --- Notes: v2: - Add fixes tag drivers/net/can/m_can/tcan4x5x-core.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/can/m_can/tcan4x5x-core.c b/drivers/net/can/m_can/tcan4x5x-core.c index 41645a24384c..1fec394b3517 100644 --- a/drivers/net/can/m_can/tcan4x5x-core.c +++ b/drivers/net/can/m_can/tcan4x5x-core.c @@ -204,11 +204,6 @@ static int tcan4x5x_clear_interrupts(struct m_can_classdev *cdev) if (ret) return ret; - ret = tcan4x5x_write_tcan_reg(cdev, TCAN4X5X_MCAN_INT_REG, - TCAN4X5X_ENABLE_MCAN_INT); - if (ret) - return ret; - ret = tcan4x5x_write_tcan_reg(cdev, TCAN4X5X_INT_FLAGS, TCAN4X5X_CLEAR_ALL_INT); if (ret) -- 2.38.1