diff options
author | Fugang Duan <fugang.duan@nxp.com> | 2018-01-30 15:53:55 +0800 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | 3f6a12765bc240e581081454d4b59945826a373e (patch) | |
tree | 9607fc99aa3352012f1f4e4a1747e65b89c50e10 /drivers/net | |
parent | da53d6d83f7d95f85a956ad97dccdcbd4748453e (diff) |
MLK-17475-04 net: phy: tja110x: clean up the debug error message
Some code slices have handled the code logic in correctly, it should
not print out the error message. So clean up them.
Reviewed-by: Pandy Gao <pandy.gao@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/phy/tja110x.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/phy/tja110x.c b/drivers/net/phy/tja110x.c index 9ec978b5a52d..5134cecbd78b 100644 --- a/drivers/net/phy/tja110x.c +++ b/drivers/net/phy/tja110x.c @@ -726,7 +726,7 @@ static int nxp_sleep(struct phy_device *phydev) /* error handling */ phy_auto_op_error: - dev_err(&phydev->mdio.dev, "phy is in auto mode: sleep not possible\n"); + dev_info(&phydev->mdio.dev, "phy is in auto mode: sleep not possible\n"); return 0; phy_configure_error: @@ -826,7 +826,7 @@ static int wakeup_from_sleep(struct phy_device *phydev) /* error handling */ phy_auto_op_error: - dev_err(&phydev->mdio.dev, "phy is in auto mode: wakeup not possible\n"); + dev_dbg(&phydev->mdio.dev, "phy is in auto mode: wakeup not possible\n"); return 0; phy_configure_error: @@ -936,7 +936,7 @@ phy_configure_error: return err; phy_auto_op_error: - dev_err(&phydev->mdio.dev, "phy is in auto mode: suspend not possible\n"); + dev_dbg(&phydev->mdio.dev, "phy is in auto mode: suspend not possible\n"); return 0; } @@ -1485,7 +1485,7 @@ static ssize_t sysfs_set_loopback_cfg(struct device *dev, /* error handling */ phy_auto_op_error: - dev_err(&phydev->mdio.dev, "phy is in auto mode: loopback not available\n"); + dev_info(&phydev->mdio.dev, "phy is in auto mode: loopback not available\n"); return count; phy_parse_error: @@ -1549,7 +1549,7 @@ static ssize_t sysfs_get_cable_test(struct device *dev, /* error handling */ phy_auto_op_error: - dev_err(&phydev->mdio.dev, "phy is in auto mode: cabletest not available\n"); + dev_info(&phydev->mdio.dev, "phy is in auto mode: cabletest not available\n"); return 0; phy_read_error: @@ -1686,7 +1686,7 @@ static ssize_t sysfs_set_test_mode(struct device *dev, /* error handling */ phy_auto_op_error: - dev_err(&phydev->mdio.dev, "phy is in auto mode: testmodes not available\n"); + dev_info(&phydev->mdio.dev, "phy is in auto mode: testmodes not available\n"); return count; phy_parse_error: |