[openwrt/openwrt] realtek: suppress debug messages of RTL930x SerDes in PHY driver
LEDE Commits
lede-commits at lists.infradead.org
Tue Jan 21 09:39:18 PST 2025
svanheule pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/9fc80b684cb4d0d4b632c973bd1b90ca573628d1
commit 9fc80b684cb4d0d4b632c973bd1b90ca573628d1
Author: INAGAKI Hiroshi <musashino.open at gmail.com>
AuthorDate: Mon Dec 23 21:00:26 2024 +0900
realtek: suppress debug messages of RTL930x SerDes in PHY driver
Change some debugging messages of RTL930x SerDes in the PHY driver to
pr_debug() to suppress log messages on the console.
Signed-off-by: INAGAKI Hiroshi <musashino.open at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17593
Signed-off-by: Sander Vanheule <sander at svanheule.net>
---
target/linux/realtek/files-6.6/drivers/net/phy/rtl83xx-phy.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/target/linux/realtek/files-6.6/drivers/net/phy/rtl83xx-phy.c b/target/linux/realtek/files-6.6/drivers/net/phy/rtl83xx-phy.c
index 09c6ca3b2c..53a7e184f5 100644
--- a/target/linux/realtek/files-6.6/drivers/net/phy/rtl83xx-phy.c
+++ b/target/linux/realtek/files-6.6/drivers/net/phy/rtl83xx-phy.c
@@ -1690,7 +1690,7 @@ static int rtl9300_read_status(struct phy_device *phydev)
if (of_property_read_u32(dn, "sds", &sds_num))
sds_num = -1;
- pr_info("%s: Port %d, SerDes is %d\n", __func__, phy_addr, sds_num);
+ pr_debug("%s: Port %d, SerDes is %d\n", __func__, phy_addr, sds_num);
} else {
dev_err(dev, "No DT node.\n");
return -EINVAL;
@@ -1700,7 +1700,7 @@ static int rtl9300_read_status(struct phy_device *phydev)
return 0;
mode = rtl9300_sds_mode_get(sds_num);
- pr_info("%s got SDS mode %02x\n", __func__, mode);
+ pr_debug("%s got SDS mode %02x\n", __func__, mode);
if (mode == RTL930X_SDS_OFF)
mode = rtl9300_sds_field_r(sds_num, 0x1f, 9, 11, 7);
if (mode == RTL930X_SDS_MODE_10GBASER) { /* 10GR mode */
@@ -1715,7 +1715,7 @@ static int rtl9300_read_status(struct phy_device *phydev)
latch_status |= rtl9300_sds_field_r(sds_num, 0x1, 30, 8, 0);
}
- pr_info("%s link status: status: %d, latch %d\n", __func__, status, latch_status);
+ pr_debug("%s link status: status: %d, latch %d\n", __func__, status, latch_status);
if (latch_status) {
phydev->link = true;
More information about the lede-commits
mailing list