Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6550029ybx; Mon, 11 Nov 2019 10:47:38 -0800 (PST) X-Google-Smtp-Source: APXvYqyxo5nlAxnP+hODG/+RbcFVIoXKHFmsmCcHISTXCSzsAQo9TOgOXUI0SAwkxs3mTI3U7TA4 X-Received: by 2002:a05:6402:1397:: with SMTP id b23mr28315794edv.196.1573498058247; Mon, 11 Nov 2019 10:47:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573498058; cv=none; d=google.com; s=arc-20160816; b=KWfBdcEeTOaj+fiWRUGa28mmIwKB8T6rzihCaddm5RaFCWl1KrEYrCBPP2+RvS/+kG ADyhKhlojN0De4ovHmR7YjrEMc51znWBkz1/pkDY3IhQfJVFSQsfq3vEn4YxnybhcIkO mciUa4fyrHx5Ori/HAqgbm4C+bkcNiX+5xQ+PamtoNRRQPPTuRZace0c7lMM9cOEuN3O LLbpeeoOEhgujXENPiGeg4N6YPeNvpcx/4I3Txf+ihbboLnIRZwZsOnOjbpDpZs3IwGj vxbPO/D39rYlk63I4OGRocDcZ4mq77iw5SLvQRyj2lkVxC+/cv7kKhoaI5PTu7i0N42+ 6HdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7J5j2MgHOOAT86zpwzhxy5MpZ5Zb9kaG+VOw/wJW9HU=; b=OPi7yJ8+q4VK+zv2fldoLqVLV2GYAEOhlNPY7tZn5aGbL1uCL+1ieGeRje42d6CsKZ GffaUAkti+gHvtTMr0sTxTfS4sgIi46bEKA1K65O50O0sH1+QW4+P4GOeIUiryzDWiLd uwl+Wk+H7pvBSAF61qjuTiZz31WthtkYIDHqdjUrRXi2/scOLrJFfjyguMaPvhUOR/1n SNvKcZfgaHtcqaKbvo/p+O//126KQluHqTpuAD2l7kChAJPi3nXgWmDTHkDxcrEUUt62 ROPDb2ibeVq4ONBmA5nDWkCbimTcpQMNwD0ZzO+zBjxOA2gseI79ggI+z09Nw5O1u/vm axXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CFo5WPXt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id um2si9838750ejb.64.2019.11.11.10.47.14; Mon, 11 Nov 2019 10:47:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CFo5WPXt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729745AbfKKSoh (ORCPT + 99 others); Mon, 11 Nov 2019 13:44:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:36294 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728429AbfKKSog (ORCPT ); Mon, 11 Nov 2019 13:44:36 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B5A9420674; Mon, 11 Nov 2019 18:44:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573497875; bh=ulVBYdmzhZH4kIJBSGLv7BaJr7sXNkk+SblnUPogkIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CFo5WPXtpiRUp7QpXDSJ8bf7pQZcX5zulg48fV6Twayv8G/cztuAjr2Pcu8cOgcuy UqVsV98E/EtIUWMeqg4HgqJChu3fofmAE4hCQJLo8+qa44CgDGG7C8WzcxnOcFdDYR DGcsw3W5jTNH6W6vBNx8w8nmz2S5Mvz18EHpzMBA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Joakim Zhang , Marc Kleine-Budde Subject: [PATCH 4.19 044/125] can: flexcan: disable completely the ECC mechanism Date: Mon, 11 Nov 2019 19:28:03 +0100 Message-Id: <20191111181446.194944012@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191111181438.945353076@linuxfoundation.org> References: <20191111181438.945353076@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joakim Zhang commit 5e269324db5adb2f5f6ec9a93a9c7b0672932b47 upstream. The ECC (memory error detection and correction) mechanism can be activated or not, controlled by the ECCDIS bit in CAN_MECR. When disabled, updates on indications and reporting registers are stopped. So if want to disable ECC completely, had better assert ECCDIS bit, not just mask the related interrupts. Fixes: cdce844865be ("can: flexcan: add vf610 support for FlexCAN") Signed-off-by: Joakim Zhang Cc: linux-stable Signed-off-by: Marc Kleine-Budde Signed-off-by: Greg Kroah-Hartman --- drivers/net/can/flexcan.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/can/flexcan.c +++ b/drivers/net/can/flexcan.c @@ -1048,6 +1048,7 @@ static int flexcan_chip_start(struct net reg_mecr = priv->read(®s->mecr); reg_mecr &= ~FLEXCAN_MECR_ECRWRDIS; priv->write(reg_mecr, ®s->mecr); + reg_mecr |= FLEXCAN_MECR_ECCDIS; reg_mecr &= ~(FLEXCAN_MECR_NCEFAFRZ | FLEXCAN_MECR_HANCEI_MSK | FLEXCAN_MECR_FANCEI_MSK); priv->write(reg_mecr, ®s->mecr);