Received: by 10.213.65.68 with SMTP id h4csp879006imn; Tue, 27 Mar 2018 10:27:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+JASmvYtf3b0mieZLSArQjuikwi+J/mYXSxrf8gAFv/dBH7WRRwRQdVkgit+nrn/qxABk8 X-Received: by 2002:a17:902:4303:: with SMTP id i3-v6mr208271pld.302.1522171628314; Tue, 27 Mar 2018 10:27:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522171628; cv=none; d=google.com; s=arc-20160816; b=0PxKKkwkStTcMi22su6Fngor2j3wz344qexwRgVp0xyIbrulGZRHB8eOF264G/0wH6 ZkWgVClRWPR//J1lvRqvpYfjQS54qD92YhWMbhTPEdrtU1U90HvQZpvtTGyIMlG1gWet wpLpwKBqqLWkiVo4EvYLk4WgXguJgcFBuyEf3f+gbxsD0qLQ+6xmEG1yrs8jZ3fJ/971 kHXhGDihtg2hMTFhbOzQ/zURwfnTfTYKulv3n37XaqG/p9lluL2MdWMj2BlMR+LowA8b mlqalfMHT3yHz3piJzxqwETF0bUPDQSmXT7jUyjRa9da8rLVFnf9zO2TGrZYyBVRRPhb qKzQ== 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=EDp9sC1dHZu+EXISum7C2of9PaUtY/Q0ceT3tIEadXE=; b=J9fBTNn7swzmelZWGEyjwIEYNkEELCNxt9fOdYHWm3iGEnsfrX+3TJ3owxKcKT4TQ9 s6gbw+Uza2SDu2f7pd32d54ifWoICVbjI0siS6rBduxnM6Ps/GdbskPIjr12SnvU0RIj TSW6oMOhY3dIh6xHBffAUPIrqGtrjyBcMALc803n/e1CXIULboI7GgPR5Me7GxZp9UuS 7VQkuZm5ZpywO5YCVz6d/1YqD2eLHE+wS+j1XYAg2KU9cZSP8Ynkghp4KdBKjjKvJH96 CYMooI6uM3pdGiBewB7smuq1HPgQHeQJdcTVPxEpc92Zs0pE/Qn20IkX/P6jgzSS2yYz uTSg== 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.10.26.53; Tue, 27 Mar 2018 10:27:08 -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 S1754830AbeC0QhD (ORCPT + 99 others); Tue, 27 Mar 2018 12:37:03 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46000 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754548AbeC0QhA (ORCPT ); Tue, 27 Mar 2018 12:37:00 -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 D4FC5EFE; Tue, 27 Mar 2018 16:36:59 +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.14 074/101] can: cc770: Fix stalls on rt-linux, remove redundant IRQ ack Date: Tue, 27 Mar 2018 18:27:46 +0200 Message-Id: <20180327162754.639057000@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162749.993880276@linuxfoundation.org> References: <20180327162749.993880276@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.14-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);