From patchwork Fri Feb 21 07:40:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 230672 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4E7EC35641 for ; Fri, 21 Feb 2020 08:41:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7A42A206ED for ; Fri, 21 Feb 2020 08:41:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582274519; bh=GenGKx8klKN5QOWUcat6rkevYzH+j2MnwyEAoetKWvM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=luKYBJXMpbA+WewFjSsRiwPhczwpULmTC83AiGFMNnii7JXtzGWX1FTiV3jt0cA0j 1rRY+hQwIfSWOi0MfF7U2+wE69rWmIJnDRB1P/msumexPedHIebjfWn4Dj+aJHPB61 s3NDx2EH4KkafPVo2WW6uNJ2F4IIeU1iG1mc5dy0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728286AbgBUH4K (ORCPT ); Fri, 21 Feb 2020 02:56:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:55360 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730435AbgBUH4J (ORCPT ); Fri, 21 Feb 2020 02:56:09 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 28CD124672; Fri, 21 Feb 2020 07:56:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582271768; bh=GenGKx8klKN5QOWUcat6rkevYzH+j2MnwyEAoetKWvM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wuypue4I6qZKWA/mvksSHqd2A2SZU4xJX1Es5tJee8F58WDF4GaH+g5lFb3S6bH3c MCYu3QDSAuV+dAfJttpvAG3xk2/HGWM8yCLg6QtJNvTEdN5rSM+xJD3NQi9UEgoE8z RbiwvXN3EmfBNfOgfgmK4wHFgFs7wyjBLYcLyv8w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vladimir Oltean , Andrew Lunn , "David S. Miller" , Sasha Levin Subject: [PATCH 5.5 292/399] enetc: Dont print from enetc_sched_speed_set when link goes down Date: Fri, 21 Feb 2020 08:40:17 +0100 Message-Id: <20200221072430.170548830@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072402.315346745@linuxfoundation.org> References: <20200221072402.315346745@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Vladimir Oltean [ Upstream commit 90f29f0eada4d60e1f6ae537502ddb2202b9540d ] It is not an error to unplug a cable from the ENETC port even with TSN offloads, so don't spam the log with link-related messages from the tc-taprio offload subsystem, a single notification is sufficient: [10972.351859] fsl_enetc 0000:00:00.0 eno0: Qbv PSPEED set speed link down. [10972.360241] fsl_enetc 0000:00:00.0 eno0: Link is Down Fixes: 2e47cb415f0a ("enetc: update TSN Qbv PSPEED set according to adjust link speed") Signed-off-by: Vladimir Oltean Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/freescale/enetc/enetc_qos.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/enetc/enetc_qos.c b/drivers/net/ethernet/freescale/enetc/enetc_qos.c index 9190ffc9f6b21..de52686b1d467 100644 --- a/drivers/net/ethernet/freescale/enetc/enetc_qos.c +++ b/drivers/net/ethernet/freescale/enetc/enetc_qos.c @@ -36,7 +36,6 @@ void enetc_sched_speed_set(struct net_device *ndev) case SPEED_10: default: pspeed = ENETC_PMR_PSPEED_10M; - netdev_err(ndev, "Qbv PSPEED set speed link down.\n"); } priv->speed = speed;