Received: by 10.213.65.68 with SMTP id h4csp913211imn; Tue, 27 Mar 2018 11:04:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/J1/eSEvdMaTa6kboqNw0BpBk6BO7QJXEQYw1LTO2PD94kuG7+XgOndIHHPMEn0JVenSZz X-Received: by 2002:a17:902:7295:: with SMTP id d21-v6mr334011pll.130.1522173899031; Tue, 27 Mar 2018 11:04:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522173898; cv=none; d=google.com; s=arc-20160816; b=TDZRf6seJUptuG9BrR1QlZb0KVE95rQDBrXRfjEkvyUAqb/Elpms8YoGS7vXLHqJl6 d6kfpqJPrXE3zBM5eKcqHace3Qllp2Xv9Jc+JN0DudEB3WT4a3OtPGPYyM1TWwCchEPf mFnz0qRwRBSVzXqtuo4FsagqSjohyat2gB+c9+xQwBidrThlkGN8AzjMlnEioULSqL/Z 0H3GKlKKuKNYqVqvoTpCvRQ6jbOMTEezkubDRzNtF8u970WVkJHryqjyDyNY9yMpxxz9 TqEDuRT/AR6P8vpxUebuaEbSFxMafEAxgpyrCgO9fWsizxeYX2ZqEHEvvULfQ4B0nnwk 1+Fw== 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=WMXHWntpX8ZK9k6cD3/C1Kj58JgqieSEaDqylSiG0J8=; b=EdOtUaVulbRTyfTSq+n7CRFDTg+EsM7jog9FDoEsBg2K/gXFGbtNlCzCRLemLWSL/Y F5mkLqNNND/UhzwYKtcbGxtVeej3LDfNbbCW21bQAWO5oXS8c3QpLnbmX2SA1G1hTzA2 QTWP9rXrP2M0gja8+/MTq0QrJqKVEGd8DrxVj17EmPOQMQlNDMdPiUcqumGiJ0D8oLx0 8lgjsEFH8VZUC8f7yZFk/91AKv1B91NaEcV5l91xQGKBQ0cfES/4yBDZ2UBesXGhiR8x ei9Nuud7yRWY3nmAAb8Ze0T4RV1+B/eWrQP5uZ1+e+/WG/KhNB/OOoWznhojx9mG93w6 pbIQ== 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 y2si1223709pgc.717.2018.03.27.11.04.44; Tue, 27 Mar 2018 11:04:58 -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 S1752676AbeC0Q3x (ORCPT + 99 others); Tue, 27 Mar 2018 12:29:53 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:41456 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752715AbeC0Q3m (ORCPT ); Tue, 27 Mar 2018 12:29:42 -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 61F6510B8; Tue, 27 Mar 2018 16:29:41 +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.4 31/43] can: cc770: Fix stalls on rt-linux, remove redundant IRQ ack Date: Tue, 27 Mar 2018 18:27:35 +0200 Message-Id: <20180327162718.161733459@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162716.407986916@linuxfoundation.org> References: <20180327162716.407986916@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.4-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);