aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorBirger Koblitz <git@birger-koblitz.de>2021-09-10 15:09:18 +0200
committerJohn Crispin <john@phrozen.org>2021-10-09 08:25:06 +0200
commit88936e7e8278ef82c0937e47be6b4556b3ef708a (patch)
treee47307106cffe13bad23d33743cb24c607f2f4a8 /target/linux
parent1cfd45ae0bad3975cd59ff18ce04265b1bccbcd6 (diff)
downloadupstream-88936e7e8278ef82c0937e47be6b4556b3ef708a.tar.gz
upstream-88936e7e8278ef82c0937e47be6b4556b3ef708a.tar.bz2
upstream-88936e7e8278ef82c0937e47be6b4556b3ef708a.zip
realtek: cleanup PHY driver
Removes unnecessary output from the RTL PHY drivers. Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/realtek/files-5.10/drivers/net/phy/rtl83xx-phy.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/target/linux/realtek/files-5.10/drivers/net/phy/rtl83xx-phy.c b/target/linux/realtek/files-5.10/drivers/net/phy/rtl83xx-phy.c
index 3e187228a9..636cda287b 100644
--- a/target/linux/realtek/files-5.10/drivers/net/phy/rtl83xx-phy.c
+++ b/target/linux/realtek/files-5.10/drivers/net/phy/rtl83xx-phy.c
@@ -211,7 +211,7 @@ void rtl9300_sds_rst(int sds_num, u32 mode)
0x02A4, 0x02A4, 0x0198, 0x0198 };
u8 lsb[] = { 0, 6, 12, 18, 0, 6, 12, 18, 0, 6, 0, 6};
- pr_info("SerDes: %s %d\n", __func__, mode);
+ pr_info("%s %d\n", __func__, mode);
if (sds_num < 0 || sds_num > 11) {
pr_err("Wrong SerDes number: %d\n", sds_num);
return;
@@ -223,7 +223,7 @@ void rtl9300_sds_rst(int sds_num, u32 mode)
sw_w32_mask(0x1f << lsb[sds_num], mode << lsb[sds_num], regs[sds_num]);
mdelay(10);
- pr_info("SDS: 194:%08x 198:%08x 2a0:%08x 2a4:%08x\n",
+ pr_debug("%s: 194:%08x 198:%08x 2a0:%08x 2a4:%08x\n", __func__,
sw_r32(0x194), sw_r32(0x198), sw_r32(0x2a0), sw_r32(0x2a4));
}
@@ -276,7 +276,7 @@ int rtl930x_read_sds_phy(int phy_addr, int page, int phy_reg)
int i;
u32 cmd = phy_addr << 2 | page << 7 | phy_reg << 13 | 1;
- pr_info("%s: phy_addr %d, phy_reg: %d\n", __func__, phy_addr, phy_reg);
+ pr_debug("%s: phy_addr %d, phy_reg: %d\n", __func__, phy_addr, phy_reg);
sw_w32(cmd, RTL930X_SDS_INDACS_CMD);
for (i = 0; i < 100; i++) {
@@ -288,7 +288,7 @@ int rtl930x_read_sds_phy(int phy_addr, int page, int phy_reg)
if (i >= 100)
return -EIO;
- pr_info("%s: returning %04x\n", __func__, sw_r32(RTL930X_SDS_INDACS_DATA) & 0xffff);
+ pr_debug("%s: returning %04x\n", __func__, sw_r32(RTL930X_SDS_INDACS_DATA) & 0xffff);
return sw_r32(RTL930X_SDS_INDACS_DATA) & 0xffff;
}
@@ -508,7 +508,7 @@ static int rtl8226_config_aneg(struct phy_device *phydev)
u32 v;
int port = phydev->mdio.addr;
- pr_info("In %s\n", __func__);
+ pr_debug("In %s\n", __func__);
if (phydev->autoneg == AUTONEG_ENABLE) {
ret = rtl8226_advertise_aneg(phydev);
if (ret)
@@ -532,11 +532,9 @@ static int rtl8226_config_aneg(struct phy_device *phydev)
ret = write_mmd_phy(port, MMD_VEND2, 0xA400, v);
}
- pr_info("%s: Ret is already: %d\n", __func__, ret);
// TODO: ret = __genphy_config_aneg(phydev, ret);
out:
- pr_info("%s: And ret is now: %d\n", __func__, ret);
return ret;
}
@@ -1727,7 +1725,7 @@ static int rtl8218d_phy_probe(struct phy_device *phydev)
struct rtl838x_phy_priv *priv;
int addr = phydev->mdio.addr;
- pr_info("%s: id: %d\n", __func__, addr);
+ pr_debug("%s: id: %d\n", __func__, addr);
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
if (!priv)
return -ENOMEM;