Received: by 10.213.65.68 with SMTP id h4csp896514imn; Tue, 27 Mar 2018 10:46:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/XyE1Imwloq4q5wZCQKkpsm3000I/+A2YkOf5qewg79QPFq6jbnBU6AvjV/KzS+2afBm6l X-Received: by 2002:a17:902:d807:: with SMTP id a7-v6mr277181plz.218.1522172766888; Tue, 27 Mar 2018 10:46:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522172766; cv=none; d=google.com; s=arc-20160816; b=RoQyuHsxN+9sfWVUfGgoHRNQTTu+cNsWRPoVB/lIMzgZH+yr8R9EkPOakO7A7nDlVV mKqN8Sg3jdpFdR8g9fyXaxzcbMbzVPwLpSGQrtNVnxUx8r464koJZECZAVRzV756dRsR tOEkI/aoKRWq7DqkS8cj3poyFgQEcccMsbpcHBiyUyZrSjLgvTAam9FQLDEvMOC7Pnpk aclx/VHArO1IrZ2nGh1f6V5u/kbW4Q8aRiCYg2lok/P/NVbWr54GwDkULO8dORV+usSm KiAoIMN0/0XRxn6wG7mHyg6GbFMUT09LtLst49jfiVomrbFQwJFqyyZY9XVOXL6CX/73 e64g== 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=5YMyF2LjFEPS81Py27NOhva9hNRv5Yvzp05gKTQFBW8=; b=NwcvJG+BgbHdXZN/6Gg6d+n0/BtorlFRoqR7KaufFtBfQ9waktoWOoa5G3jEhqoHF0 0h03Vso4EaMnbsAkjvLGzxv0hVWeGi8mQ8lYGtNMJ4AtSogCGNcNSw+oO5ev+3aoYkdC uU4NNbm42b30Dz2i0nPCqlrfPlpG7Qhp6EMAVnAvvgpQHVTf/XIEVsbXnya/aSbCwaqW zIORUlwc52LGbWFOi23A7Plz9D8YaeAnZyo/OIYgGHg+7Sbdds2vvG3YbUbdbL4zyy6H /DXVfhM+rAu+dt2IEIAGDk+wAR4hmvf/RszJNxNBe2/qfBdpG7qg7cXMIXYyuEpqqG5O AVpw== 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 g11si1112261pgs.153.2018.03.27.10.45.52; Tue, 27 Mar 2018 10:46:06 -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 S1753935AbeC0QdY (ORCPT + 99 others); Tue, 27 Mar 2018 12:33:24 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:43838 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753883AbeC0QdV (ORCPT ); Tue, 27 Mar 2018 12:33:21 -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 0E5F51175; Tue, 27 Mar 2018 16:33:20 +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.9 45/67] can: cc770: Fix stalls on rt-linux, remove redundant IRQ ack Date: Tue, 27 Mar 2018 18:27:37 +0200 Message-Id: <20180327162729.629242896@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162726.702411083@linuxfoundation.org> References: <20180327162726.702411083@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.9-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);