aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/forcedeth.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-11-29 02:41:55 -0500
committerDavid S. Miller <davem@davemloft.net>2010-11-29 14:44:53 -0500
commitf52dafc1a67c98baa9b6fa1866a4caa4be4831fb (patch)
tree2275c5c7e9977f928960eb1abf2a9cd7f78c3fca /drivers/net/forcedeth.c
parente649985b4ab1e86b3a389cf0d7c48f9cb1e27ae6 (diff)
forcedeth: Convert remaining dprintk to netdev_dbg
The remaining dprintk uses are emitted as KERN_INFO. Change these dprintk uses to netdev_dbg. Remove the now unused dprintk macros. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/forcedeth.c')
-rw-r--r--drivers/net/forcedeth.c31
1 files changed, 12 insertions, 19 deletions
diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c
index 1ac8b4e87276..b30a5992e332 100644
--- a/drivers/net/forcedeth.c
+++ b/drivers/net/forcedeth.c
@@ -66,12 +66,6 @@
66#include <asm/irq.h> 66#include <asm/irq.h>
67#include <asm/system.h> 67#include <asm/system.h>
68 68
69#if 0
70#define dprintk printk
71#else
72#define dprintk(x...) do { } while (0)
73#endif
74
75#define TX_WORK_PER_LOOP 64 69#define TX_WORK_PER_LOOP 64
76#define RX_WORK_PER_LOOP 64 70#define RX_WORK_PER_LOOP 64
77 71
@@ -3033,8 +3027,7 @@ static void nv_set_multicast(struct net_device *dev)
3033 writel(mask[0], base + NvRegMulticastMaskA); 3027 writel(mask[0], base + NvRegMulticastMaskA);
3034 writel(mask[1], base + NvRegMulticastMaskB); 3028 writel(mask[1], base + NvRegMulticastMaskB);
3035 writel(pff, base + NvRegPacketFilterFlags); 3029 writel(pff, base + NvRegPacketFilterFlags);
3036 dprintk(KERN_INFO "%s: reconfiguration for multicast lists.\n", 3030 netdev_dbg(dev, "reconfiguration for multicast lists\n");
3037 dev->name);
3038 nv_start_rx(dev); 3031 nv_start_rx(dev);
3039 spin_unlock_irq(&np->lock); 3032 spin_unlock_irq(&np->lock);
3040} 3033}
@@ -3192,8 +3185,8 @@ set_speed:
3192 if (np->duplex == newdup && np->linkspeed == newls) 3185 if (np->duplex == newdup && np->linkspeed == newls)
3193 return retval; 3186 return retval;
3194 3187
3195 dprintk(KERN_INFO "%s: changing link setting from %d/%d to %d/%d.\n", 3188 netdev_dbg(dev, "changing link setting from %d/%d to %d/%d\n",
3196 dev->name, np->linkspeed, np->duplex, newls, newdup); 3189 np->linkspeed, np->duplex, newls, newdup);
3197 3190
3198 np->duplex = newdup; 3191 np->duplex = newdup;
3199 np->linkspeed = newls; 3192 np->linkspeed = newls;
@@ -3336,7 +3329,7 @@ static void nv_link_irq(struct net_device *dev)
3336 3329
3337 miistat = readl(base + NvRegMIIStatus); 3330 miistat = readl(base + NvRegMIIStatus);
3338 writel(NVREG_MIISTAT_LINKCHANGE, base + NvRegMIIStatus); 3331 writel(NVREG_MIISTAT_LINKCHANGE, base + NvRegMIIStatus);
3339 dprintk(KERN_INFO "%s: link change irq, status 0x%x.\n", dev->name, miistat); 3332 netdev_dbg(dev, "link change irq, status 0x%x\n", miistat);
3340 3333
3341 if (miistat & (NVREG_MIISTAT_LINKCHANGE)) 3334 if (miistat & (NVREG_MIISTAT_LINKCHANGE))
3342 nv_linkchange(dev); 3335 nv_linkchange(dev);
@@ -5243,7 +5236,7 @@ static int nv_open(struct net_device *dev)
5243 u32 miistat; 5236 u32 miistat;
5244 miistat = readl(base + NvRegMIIStatus); 5237 miistat = readl(base + NvRegMIIStatus);
5245 writel(NVREG_MIISTAT_MASK_ALL, base + NvRegMIIStatus); 5238 writel(NVREG_MIISTAT_MASK_ALL, base + NvRegMIIStatus);
5246 dprintk(KERN_INFO "startup: got 0x%08x.\n", miistat); 5239 netdev_dbg(dev, "startup: got 0x%08x\n", miistat);
5247 } 5240 }
5248 /* set linkspeed to invalid value, thus force nv_update_linkspeed 5241 /* set linkspeed to invalid value, thus force nv_update_linkspeed
5249 * to init hw */ 5242 * to init hw */
@@ -5299,7 +5292,7 @@ static int nv_close(struct net_device *dev)
5299 base = get_hwbase(dev); 5292 base = get_hwbase(dev);
5300 nv_disable_hw_interrupts(dev, np->irqmask); 5293 nv_disable_hw_interrupts(dev, np->irqmask);
5301 pci_push(base); 5294 pci_push(base);
5302 dprintk(KERN_INFO "%s: Irqmask is zero again\n", dev->name); 5295 netdev_dbg(dev, "Irqmask is zero again\n");
5303 5296
5304 spin_unlock_irq(&np->lock); 5297 spin_unlock_irq(&np->lock);
5305 5298
@@ -5649,11 +5642,11 @@ static int __devinit nv_probe(struct pci_dev *pci_dev, const struct pci_device_i
5649 if (id->driver_data & DEV_NEED_TIMERIRQ) 5642 if (id->driver_data & DEV_NEED_TIMERIRQ)
5650 np->irqmask |= NVREG_IRQ_TIMER; 5643 np->irqmask |= NVREG_IRQ_TIMER;
5651 if (id->driver_data & DEV_NEED_LINKTIMER) { 5644 if (id->driver_data & DEV_NEED_LINKTIMER) {
5652 dprintk(KERN_INFO "%s: link timer on.\n", pci_name(pci_dev)); 5645 netdev_dbg(dev, "%s: link timer on\n", pci_name(pci_dev));
5653 np->need_linktimer = 1; 5646 np->need_linktimer = 1;
5654 np->link_timeout = jiffies + LINK_TIMEOUT; 5647 np->link_timeout = jiffies + LINK_TIMEOUT;
5655 } else { 5648 } else {
5656 dprintk(KERN_INFO "%s: link timer off.\n", pci_name(pci_dev)); 5649 netdev_dbg(dev, "%s: link timer off\n", pci_name(pci_dev));
5657 np->need_linktimer = 0; 5650 np->need_linktimer = 0;
5658 } 5651 }
5659 5652
@@ -5684,16 +5677,16 @@ static int __devinit nv_probe(struct pci_dev *pci_dev, const struct pci_device_i
5684 np->mac_in_use = 1; 5677 np->mac_in_use = 1;
5685 if (np->mgmt_version > 0) 5678 if (np->mgmt_version > 0)
5686 np->mac_in_use = readl(base + NvRegMgmtUnitControl) & NVREG_MGMTUNITCONTROL_INUSE; 5679 np->mac_in_use = readl(base + NvRegMgmtUnitControl) & NVREG_MGMTUNITCONTROL_INUSE;
5687 dprintk(KERN_INFO "%s: mgmt unit is running. mac in use %x.\n", 5680 netdev_dbg(dev, "%s: mgmt unit is running. mac in use %x\n",
5688 pci_name(pci_dev), np->mac_in_use); 5681 pci_name(pci_dev), np->mac_in_use);
5689 /* management unit setup the phy already? */ 5682 /* management unit setup the phy already? */
5690 if (np->mac_in_use && 5683 if (np->mac_in_use &&
5691 ((readl(base + NvRegTransmitterControl) & NVREG_XMITCTL_SYNC_MASK) == 5684 ((readl(base + NvRegTransmitterControl) & NVREG_XMITCTL_SYNC_MASK) ==
5692 NVREG_XMITCTL_SYNC_PHY_INIT)) { 5685 NVREG_XMITCTL_SYNC_PHY_INIT)) {
5693 /* phy is inited by mgmt unit */ 5686 /* phy is inited by mgmt unit */
5694 phyinitialized = 1; 5687 phyinitialized = 1;
5695 dprintk(KERN_INFO "%s: Phy already initialized by mgmt unit.\n", 5688 netdev_dbg(dev, "%s: Phy already initialized by mgmt unit\n",
5696 pci_name(pci_dev)); 5689 pci_name(pci_dev));
5697 } else { 5690 } else {
5698 /* we need to init the phy */ 5691 /* we need to init the phy */
5699 } 5692 }