Skip to contentSkip to conversation

net: stmmac: Fix wrong message in stmmac_probe_config_dt

PATCH Applied Heiner Kallweit 3 participants 3 messages Feb 2, 2017 – Feb 3, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 net: stmmac: Fix wrong message in stmmac_probe_config_dt

Most likely a copy & paste error in referenced commit. Restore the debug message to what it was before.

Fixes f573c0b9c4e0 ("stmmac: move stmmac_clk, pclk, clk_ptp_ref and stmmac_rst to platform structure")

---
v2:
- Don't remove the wrong comment but replace it with what was there before the referenced commit.

---
 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +1 -1
index 460f94f5..4963ccdb 100644
@@ -371,7 +371,7 @@ stmmac_probe_config_dt(struct platform_device *pdev, const char **mac)
 	} else {
 		clk_prepare_enable(plat->clk_ptp_ref);
 		plat->clk_ptp_rate = clk_get_rate(plat->clk_ptp_ref);
-		dev_info(&pdev->dev, "No reset control found\n");
+		dev_dbg(&pdev->dev, "PTP rate %d\n", plat->clk_ptp_rate);
 	}
 
 	plat->stmmac_rst = devm_reset_control_get(&pdev->dev,
Signature · 1 line
2.11.0
Acked-by on v2 1/1
#1 lore raw

Hi Heiner,

Às 7:20 AM de 2/2/2017, Heiner Kallweit escreveu:

Quoted 1 line

Most likely a copy & paste error in referenced commit.

Yep, thanks for noticing!

Quoted 18 lines

Restore the debug message to what it was before.

Fixes f573c0b9c4e0 ("stmmac: move stmmac_clk, pclk, clk_ptp_ref and stmmac_rst to platform structure")

---
v2:
- Don't remove the wrong comment but replace it with what was there before the referenced commit.

---
 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +0 -0
index 460f94f5..4963ccdb 100644

drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c stmmac_probe_config_dt(struct platform_device *pdev, const char **mac) · line 377

Quoted 8 lines
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +1 -1
@@ -371,7 +371,7 @@ stmmac_probe_config_dt(struct platform_device *pdev, const char **mac)
 	} else {
 		clk_prepare_enable(plat->clk_ptp_ref);
 		plat->clk_ptp_rate = clk_get_rate(plat->clk_ptp_ref);
-		dev_info(&pdev->dev, "No reset control found\n");
+		dev_dbg(&pdev->dev, "PTP rate %d\n", plat->clk_ptp_rate);
 	}
 
 	plat->stmmac_rst = devm_reset_control_get(&pdev->dev,
maintainer Applied
#2 lore raw
In reply to Heiner Kallweit

From: Heiner Kallweit <[email protected]>
Date: Thu, 2 Feb 2017 08:20:12 +0100

Quoted 9 lines

Most likely a copy & paste error in referenced commit. Restore the debug message to what it was before.

Fixes f573c0b9c4e0 ("stmmac: move stmmac_clk, pclk, clk_ptp_ref and stmmac_rst to platform structure")

---
v2:
- Don't remove the wrong comment but replace it with what was there before the referenced commit.

Applied to net-next.