diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-08-10 09:18:42 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-08-10 09:18:42 +0000 |
commit | 6ce62982dd482d17e8b7044ffc0058026b5007e9 (patch) | |
tree | 8b59a037f74370d5710bbd79a080442b82416ca2 /target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c | |
parent | 91a01e41067edb1d08727e7170b2fe76c4859f9c (diff) | |
download | mtk-20170518-6ce62982dd482d17e8b7044ffc0058026b5007e9.zip mtk-20170518-6ce62982dd482d17e8b7044ffc0058026b5007e9.tar.gz mtk-20170518-6ce62982dd482d17e8b7044ffc0058026b5007e9.tar.bz2 |
ag71xx: add initial message level support
SVN-Revision: 12262
Diffstat (limited to 'target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c index b1838d5..086de22 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c @@ -87,7 +87,8 @@ static void ag71xx_phy_link_update(struct ag71xx *ag) if (!ag->link) { netif_carrier_off(ag->dev); - printk(KERN_INFO "%s: link down\n", ag->dev->name); + if (netif_msg_link(ag)) + printk(KERN_INFO "%s: link down\n", ag->dev->name); return; } @@ -133,10 +134,11 @@ static void ag71xx_phy_link_update(struct ag71xx *ag) ag71xx_wr(ag, AG71XX_REG_MAC_IFCTL, ifctl); netif_carrier_on(ag->dev); - printk(KERN_INFO "%s: link up (%sMbps/%s duplex)\n", - ag->dev->name, - ag71xx_speed_str(ag), - (DUPLEX_FULL == ag->duplex) ? "Full" : "Half"); + if (netif_msg_link(ag)) + printk(KERN_INFO "%s: link up (%sMbps/%s duplex)\n", + ag->dev->name, + ag71xx_speed_str(ag), + (DUPLEX_FULL == ag->duplex) ? "Full" : "Half"); DBG("%s: fifo1=%#x, fifo2=%#x, fifo3=%#x, fifo4=%#x, fifo5=%#x\n", ag->dev->name, |