|
@@ -1726,8 +1726,10 @@ static int stmmac_hw_setup(struct net_device *dev, bool init_ptp)
|
|
|
|
|
|
if (init_ptp) {
|
|
|
ret = stmmac_init_ptp(priv);
|
|
|
- if (ret)
|
|
|
- netdev_warn(priv->dev, "fail to init PTP.\n");
|
|
|
+ if (ret == -EOPNOTSUPP)
|
|
|
+ netdev_warn(priv->dev, "PTP not supported by HW\n");
|
|
|
+ else if (ret)
|
|
|
+ netdev_warn(priv->dev, "PTP init failed\n");
|
|
|
}
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|