diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2020-01-16 18:18:28 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-17 11:48:38 +0100 |
commit | 90f29f0eada4d60e1f6ae537502ddb2202b9540d (patch) | |
tree | ea7aa298534a8dc0f8a7bede927a53d5ac6e9983 /drivers | |
parent | net: phy: adin: const-ify static data (diff) | |
download | linux-90f29f0eada4d60e1f6ae537502ddb2202b9540d.tar.xz linux-90f29f0eada4d60e1f6ae537502ddb2202b9540d.zip |
enetc: Don't print from enetc_sched_speed_set when link goes down
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 <vladimir.oltean@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/freescale/enetc/enetc_qos.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/enetc/enetc_qos.c b/drivers/net/ethernet/freescale/enetc/enetc_qos.c index 00382b7c5bd8..0c6bf3a55a9a 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; |