Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3423549pxf; Mon, 29 Mar 2021 01:39:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqRTCt4Tcz1cLrgM01Qv07FxhFWprqk6VGBkkeHL1CV7Mf3dOAoSX5mvK88sO8ppisShB2 X-Received: by 2002:a17:906:144d:: with SMTP id q13mr28924774ejc.458.1617007151120; Mon, 29 Mar 2021 01:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617007151; cv=none; d=google.com; s=arc-20160816; b=dq9QyvArRdeI+rCV/N9Cuy7U0zJzQ8fy4B6cYO3oRkT0st8M+oHUuoGEUaff6P4pO5 0VfgkueGBGJFyMIpP7qfo0Z7HnrwKZ2doLa3X+p9Dk0WFPlUnfEu+gqa6jXaAt0KElc9 1ufFw3IHMRJ+n19hC/UoVcpfgnPL9CyaraHG6PMYrRMluBwFXIR1KMw6MGNU2YwIQVQh i/M3ckMbfCM6yUJE+5K0hkERP9VRWTAqOdWzsfgjwEgIVv8nHEm9f0He6OpF+Un0h9eV J8ra2b/7bms5FxKeVJTDGdHUHODxrBu03cWERXazUoAo6gsIcQOajUR2o3WbduvB/T33 iDVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=w23+u4N9kkYhOYiSRcDB9XtTvGGA61ELZi8UwMhW73c=; b=kkL85GYgsjQqhP4OugQ2aTSHvy/fTGIenFGPGu2Xzpqs6BL+cy09w6AlYisiQQHQrJ sUVXggeHaKkO4fzKQHvYzAmCC3JDy77EmsrRvYx5Xm/ouFES8nZYED3sbB/t2ENeb1Ov q6ohmBUDDUOMnHK1cbPpAv+G2xM770HWqREJM62PXVbZtify222r2VMyHzMvLIYUn8WR rluYWT7TzHvKBFZNexDxbHUe/vpG/fUpHdVlfuG+fJ6oL3s58jod2LHorqEsKapstgve NqpdrtG7GQU8lJuDX/oRa/Dppacz8BGpeyqggZ8+A8VmFneQ+skwhasOMq9rVSH5GlJq 283w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FoQcfxlM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz16si12427663ejb.586.2021.03.29.01.38.48; Mon, 29 Mar 2021 01:39:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FoQcfxlM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233740AbhC2Igg (ORCPT + 99 others); Mon, 29 Mar 2021 04:36:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:39230 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233750AbhC2IWU (ORCPT ); Mon, 29 Mar 2021 04:22:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0A2B66044F; Mon, 29 Mar 2021 08:22:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617006139; bh=Zz4sB49Lgw3eaw/7i1rS61h7Lvh2UQ4b98XzT2wkO3A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FoQcfxlM1mVR7O8xP9Fv4qt8ku8+Dc9Xki15Z5yFROH/o8q6Gu+1td7oPpZy9xJiy oatEl6rwEePtRS8VJ0OIStiQsf5izaZK2TL4Q0mktdDuQPlMZ8we9KG+wfNk/K+7qp rvJlhIoMaIr/YYct38LgmW9k5I7IKLS+VmpY3XUQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mariusz Madej , Torin Cooper-Bennun , Marc Kleine-Budde , Sasha Levin Subject: [PATCH 5.10 131/221] can: m_can: m_can_do_rx_poll(): fix extraneous msg loss warning Date: Mon, 29 Mar 2021 09:57:42 +0200 Message-Id: <20210329075633.569256674@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210329075629.172032742@linuxfoundation.org> References: <20210329075629.172032742@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Torin Cooper-Bennun [ Upstream commit c0e399f3baf42279f48991554240af8c457535d1 ] Message loss from RX FIFO 0 is already handled in m_can_handle_lost_msg(), with netdev output included. Removing this warning also improves driver performance under heavy load, where m_can_do_rx_poll() may be called many times before this interrupt is cleared, causing this message to be output many times (thanks Mariusz Madej for this report). Fixes: e0d1f4816f2a ("can: m_can: add Bosch M_CAN controller support") Link: https://lore.kernel.org/r/20210303103151.3760532-1-torin@maxiluxsystems.com Reported-by: Mariusz Madej Signed-off-by: Torin Cooper-Bennun Signed-off-by: Marc Kleine-Budde Signed-off-by: Sasha Levin --- drivers/net/can/m_can/m_can.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c index 3c1e37975168..6952d5b396e8 100644 --- a/drivers/net/can/m_can/m_can.c +++ b/drivers/net/can/m_can/m_can.c @@ -502,9 +502,6 @@ static int m_can_do_rx_poll(struct net_device *dev, int quota) } while ((rxfs & RXFS_FFL_MASK) && (quota > 0)) { - if (rxfs & RXFS_RFL) - netdev_warn(dev, "Rx FIFO 0 Message Lost\n"); - m_can_read_fifo(dev, rxfs); quota--; -- 2.30.1