Received: by 10.213.65.68 with SMTP id h4csp841323imn; Tue, 27 Mar 2018 09:46:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+GHuCg0ONW8vv61AlETCm3JmxByF7hS/t/TPmpLR3vbxHLAJlSt7tqdjHQKdqkNyX/pAkN X-Received: by 10.98.204.214 with SMTP id j83mr71497pfk.182.1522169184010; Tue, 27 Mar 2018 09:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522169183; cv=none; d=google.com; s=arc-20160816; b=eKiiiI6YlG6PpZWzOG4/myNN+FTkEegU2koanBBnjibTpPNSs9Sv82HR+GSAdRbB7W 3wIUIqGS/hN1H/sbNqze2rVh8pAu1UcQj4dAnepnxomS8fuEZ93tRbXlQbh9vgNtCi7x WSZzv3shtXLcniJy30nD289oTecPWdaXlBB47imU3YzGuZCmyXyN5Z9G+npQS/ppxEin V+6UjAQrJYu+qu+CxgEFiaXB9v9Y9K8+uvAeFDgY859JNrWEBmpkz+2Ef24sfC3ObpJq SMfu4ZW5157kGjdpVU2WeNLwbu7IsFQmzPVt5gbz7uUy56TVoae8XwkCMGNB9s2xsqWm o87g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=5pGi++857pjJKW0wzjJc978IX+aGJvoEe5ZH8pqXVbs=; b=VmNY8Apc40viG4aHidOLy/1xgo7crn8J/NY9Q7v27ZuFeEofY2KdXgXlzZ6q5MfqQj ih79Y06K/VPjsyjsabLlCP9qetItoGW/sw359LJ4ZjAAitGwix/LkZpSz9QmvDfNJAGg /NVTX+MmRTb+uvcU6vVx9rxKGVyK195QHOLRYtYQUFSLE658s61UjqgkkGQT59AQPhLF H9JikknDirGp15yJeor54lUCOSJ7YE1Kz7nLwnhY5AQC+bP2FRmvmIS7rCkEF+kdyHl/ NlH+bYytQdW5vhTR+7ED9Cg/KA43MuGYzwds3q5i9e6Pkt3Np8VJBNQP22gN2Kf1/R+C OXXQ== ARC-Authentication-Results: i=1; mx.google.com; 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 t5si1106157pgo.96.2018.03.27.09.46.08; Tue, 27 Mar 2018 09:46:23 -0700 (PDT) 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; 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 S1755674AbeC0Qog (ORCPT + 99 others); Tue, 27 Mar 2018 12:44:36 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49564 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751066AbeC0Qnc (ORCPT ); Tue, 27 Mar 2018 12:43:32 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 865A410B5; Tue, 27 Mar 2018 16:43:31 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Richard Weinberger , Andri Yngvason , Marc Kleine-Budde Subject: [PATCH 4.15 079/105] can: cc770: Fix stalls on rt-linux, remove redundant IRQ ack Date: Tue, 27 Mar 2018 18:27:59 +0200 Message-Id: <20180327162802.926434251@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162757.813009222@linuxfoundation.org> References: <20180327162757.813009222@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andri Yngvason commit f4353daf4905c0099fd25fa742e2ffd4a4bab26a upstream. This has been reported to cause stalls on rt-linux. Suggested-by: Richard Weinberger Tested-by: Richard Weinberger Signed-off-by: Andri Yngvason Cc: linux-stable Signed-off-by: Marc Kleine-Budde Signed-off-by: Greg Kroah-Hartman --- drivers/net/can/cc770/cc770.c | 15 --------------- 1 file changed, 15 deletions(-) --- a/drivers/net/can/cc770/cc770.c +++ b/drivers/net/can/cc770/cc770.c @@ -447,15 +447,6 @@ static netdev_tx_t cc770_start_xmit(stru stats->tx_bytes += dlc; - - /* - * HM: We had some cases of repeated IRQs so make sure the - * INT is acknowledged I know it's already further up, but - * doing again fixed the issue - */ - cc770_write_reg(priv, msgobj[mo].ctrl0, - MSGVAL_UNC | TXIE_UNC | RXIE_UNC | INTPND_RES); - return NETDEV_TX_OK; } @@ -684,12 +675,6 @@ static void cc770_tx_interrupt(struct ne /* Nothing more to send, switch off interrupts */ cc770_write_reg(priv, msgobj[mo].ctrl0, MSGVAL_RES | TXIE_RES | RXIE_RES | INTPND_RES); - /* - * We had some cases of repeated IRQ so make sure the - * INT is acknowledged - */ - cc770_write_reg(priv, msgobj[mo].ctrl0, - MSGVAL_UNC | TXIE_UNC | RXIE_UNC | INTPND_RES); stats->tx_packets++; can_get_echo_skb(dev, 0);