Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2287436imm; Thu, 7 Jun 2018 08:13:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJnA4j2qySyrXwO2vA3N5rzo5FKeDjJ4hf+N9d+9UQegkFYVYjzBOCCRv0aWC3An6kQJn2t X-Received: by 2002:a62:8552:: with SMTP id u79-v6mr2167021pfd.201.1528384409229; Thu, 07 Jun 2018 08:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528384409; cv=none; d=google.com; s=arc-20160816; b=vPdMX9wThvkpwMyp88CijY+oi+7XvKpqkWaupcHAUaxyIH4qPFP92dXhhnxe641B4N WY8pPeQi7grtazS1xnOifdFoIJAh2ATMF6LX8PiwMDlCbd4wuRoMM6u3uhztiJgOzblV v52oScUnj41TH6eygL+spSkRKqZh4oYx9mYaftGDxFwxWqRKfUQD/0+0eOZXlyl8xWQ1 5d69Q4hIoeX8T1hGaaso6XyjCEVziZTcgGDpnTGfAh31c1SUOhIcVuFGsemkpjbgFQyh fGQLsAb2CdiXLlxNTMShWaMz5ZFHzvYgqKZ8laKeGGErkkWqnaJ7LM7vayfjm/ipwSTF P0Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=2h4xCCdCEUmALcRFXLqjBCn7j+26Ru+4t60v8ySI+7Y=; b=IIgOSZrn1GcZzD0z9F1dgU9QEFIyG5X6dxkEJnRAxW28j+17AdD+INNCrHWV0e9TDj CEwXY3HBkgF0xjti9HunqDVYrfQ6BpRhx00PbTWz47+XzdMEksecVXcpnow+dbhkr9ex 44IK64Q2AXu2Hrm5kdSHC/UCUqYv5gC/ZED8vU83uF/n16HWZm6HIbxl5Tcg7PBvm3Xn AZU6pwOZnFdfkT+DO5MKp/5K/4ykAJ1cFBT5Kc+WQXLDnnQdkYdckqycLjRaDjYohZ5Y 6rDIWHgxWykppE6V4u3PUjAnzsfPFyFPZmnvCtUpMNmTQIygwk7SJr+5sosPHfmbDVUx iwTA== 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 ba5-v6si16838380plb.184.2018.06.07.08.13.14; Thu, 07 Jun 2018 08:13:29 -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 S964979AbeFGPCx (ORCPT + 99 others); Thu, 7 Jun 2018 11:02:53 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:41461 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964940AbeFGPCv (ORCPT ); Thu, 7 Jun 2018 11:02:51 -0400 Received: from [148.252.241.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQvbG-0005Zq-7I; Thu, 07 Jun 2018 15:09:14 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fQvbC-0003ET-IW; Thu, 07 Jun 2018 15:09:10 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Andri Yngvason" , "Richard Weinberger" , "Marc Kleine-Budde" Date: Thu, 07 Jun 2018 15:05:21 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 348/410] can: cc770: Fix stalls on rt-linux, remove redundant IRQ ack In-Reply-To: X-SA-Exim-Connect-IP: 148.252.241.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.57-rc1 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 Signed-off-by: Marc Kleine-Budde Signed-off-by: Ben Hutchings --- 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; } @@ -683,12 +674,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);