net: stmmac: switch no PTP HW support message to info level
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 8 Mar 2022 18:42:57 +0000 (19:42 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 10 Mar 2022 03:54:32 +0000 (19:54 -0800)
If HW doesn't support PTP, then it doesn't support it. This is neither
a problem nor can the user do something about it. Therefore change the
message level to info.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/ee685745-f1ab-e9bf-f20e-077d55dff441@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

index cf4e077..c1bfd89 100644 (file)
@@ -3275,7 +3275,7 @@ static int stmmac_hw_setup(struct net_device *dev, bool ptp_register)
 
        ret = stmmac_init_ptp(priv);
        if (ret == -EOPNOTSUPP)
-               netdev_warn(priv->dev, "PTP not supported by HW\n");
+               netdev_info(priv->dev, "PTP not supported by HW\n");
        else if (ret)
                netdev_warn(priv->dev, "PTP init failed\n");
        else if (ptp_register)